OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 60... Line 60...
60 - ret = nf_tables_table_enable(ctx->net, ctx->afi, ctx->table); 60 - ret = nf_tables_table_enable(ctx->net, ctx->afi, ctx->table);
61 + ret = nf_tables_table_enable(ctx->net, ctx->table); 61 + ret = nf_tables_table_enable(ctx->net, ctx->table);
62 if (ret >= 0) { 62 if (ret >= 0) {
63 ctx->table->flags &= ~NFT_TABLE_F_DORMANT; 63 ctx->table->flags &= ~NFT_TABLE_F_DORMANT;
64 nft_trans_table_enable(trans) = true; 64 nft_trans_table_enable(trans) = true;
65 @@ -5786,7 +5779,6 @@ static int nf_tables_commit(struct net * 65 @@ -5772,7 +5765,6 @@ static int nf_tables_commit(struct net *
66 if (nft_trans_table_update(trans)) { 66 if (nft_trans_table_update(trans)) {
67 if (!nft_trans_table_enable(trans)) { 67 if (!nft_trans_table_enable(trans)) {
68 nf_tables_table_disable(net, 68 nf_tables_table_disable(net,
69 - trans->ctx.afi, 69 - trans->ctx.afi,
70 trans->ctx.table); 70 trans->ctx.table);
71 trans->ctx.table->flags |= NFT_TABLE_F_DORMANT; 71 trans->ctx.table->flags |= NFT_TABLE_F_DORMANT;
72 } 72 }
73 @@ -5950,7 +5942,6 @@ static int nf_tables_abort(struct net *n 73 @@ -5934,7 +5926,6 @@ static int nf_tables_abort(struct net *n
74 if (nft_trans_table_update(trans)) { 74 if (nft_trans_table_update(trans)) {
75 if (nft_trans_table_enable(trans)) { 75 if (nft_trans_table_enable(trans)) {
76 nf_tables_table_disable(net, 76 nf_tables_table_disable(net,
77 - trans->ctx.afi, 77 - trans->ctx.afi,
78 trans->ctx.table); 78 trans->ctx.table);