Loading net/netfilter/nf_tables_api.c +40 −35 Original line number Diff line number Diff line Loading @@ -8999,10 +8999,9 @@ static void __nft_release_hooks(struct net *net) } } static void __nft_release_tables(struct net *net) static void __nft_release_table(struct net *net, struct nft_table *table) { struct nft_flowtable *flowtable, *nf; struct nft_table *table, *nt; struct nft_chain *chain, *nc; struct nft_object *obj, *ne; struct nft_rule *rule, *nr; Loading @@ -9012,7 +9011,6 @@ static void __nft_release_tables(struct net *net) .family = NFPROTO_NETDEV, }; list_for_each_entry_safe(table, nt, &net->nft.tables, list) { ctx.family = table->family; ctx.table = table; list_for_each_entry(chain, &table->chains, list) { Loading Loading @@ -9047,6 +9045,13 @@ static void __nft_release_tables(struct net *net) list_del(&table->list); nf_tables_table_destroy(&ctx); } static void __nft_release_tables(struct net *net) { struct nft_table *table, *nt; list_for_each_entry_safe(table, nt, &net->nft.tables, list) __nft_release_table(net, table); } static int __net_init nf_tables_init_net(struct net *net) Loading Loading
net/netfilter/nf_tables_api.c +40 −35 Original line number Diff line number Diff line Loading @@ -8999,10 +8999,9 @@ static void __nft_release_hooks(struct net *net) } } static void __nft_release_tables(struct net *net) static void __nft_release_table(struct net *net, struct nft_table *table) { struct nft_flowtable *flowtable, *nf; struct nft_table *table, *nt; struct nft_chain *chain, *nc; struct nft_object *obj, *ne; struct nft_rule *rule, *nr; Loading @@ -9012,7 +9011,6 @@ static void __nft_release_tables(struct net *net) .family = NFPROTO_NETDEV, }; list_for_each_entry_safe(table, nt, &net->nft.tables, list) { ctx.family = table->family; ctx.table = table; list_for_each_entry(chain, &table->chains, list) { Loading Loading @@ -9047,6 +9045,13 @@ static void __nft_release_tables(struct net *net) list_del(&table->list); nf_tables_table_destroy(&ctx); } static void __nft_release_tables(struct net *net) { struct nft_table *table, *nt; list_for_each_entry_safe(table, nt, &net->nft.tables, list) __nft_release_table(net, table); } static int __net_init nf_tables_init_net(struct net *net) Loading