|
@@ -6324,7 +6324,7 @@ static void nf_tables_commit_chain_free_rules_old(struct nft_rule **rules)
|
|
|
call_rcu(&old->h, __nf_tables_commit_chain_free_rules_old);
|
|
|
}
|
|
|
|
|
|
-static void nf_tables_commit_chain_active(struct net *net, struct nft_chain *chain)
|
|
|
+static void nf_tables_commit_chain(struct net *net, struct nft_chain *chain)
|
|
|
{
|
|
|
struct nft_rule **g0, **g1;
|
|
|
bool next_genbit;
|
|
@@ -6441,11 +6441,8 @@ static int nf_tables_commit(struct net *net, struct sk_buff *skb)
|
|
|
|
|
|
/* step 2. Make rules_gen_X visible to packet path */
|
|
|
list_for_each_entry(table, &net->nft.tables, list) {
|
|
|
- list_for_each_entry(chain, &table->chains, list) {
|
|
|
- if (!nft_is_active_next(net, chain))
|
|
|
- continue;
|
|
|
- nf_tables_commit_chain_active(net, chain);
|
|
|
- }
|
|
|
+ list_for_each_entry(chain, &table->chains, list)
|
|
|
+ nf_tables_commit_chain(net, chain);
|
|
|
}
|
|
|
|
|
|
/*
|