summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-05-13 15:00:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-14 13:19:32 +0100
commit825a80817cf104463eaa29bb4626922d5e738cc9 (patch)
tree764b63c0a63954c97dfe5319dedcb74759469468 /include
parentd122b259a717c3c4860fbca669e1904b4e0ff695 (diff)
downloadlinux-825a80817cf104463eaa29bb4626922d5e738cc9.tar.gz
linux-825a80817cf104463eaa29bb4626922d5e738cc9.tar.bz2
linux-825a80817cf104463eaa29bb4626922d5e738cc9.zip
netfilter: nf_tables: pass nft_chain to destroy function, not nft_ctx
[ Upstream commit 8965d42bcf54d42cbc72fe34a9d0ec3f8527debd ] It would be better to not store nft_ctx inside nft_trans object, the netlink ctx strucutre is huge and most of its information is never needed in places that use trans->ctx. Avoid/reduce its usage if possible, no runtime behaviour change intended. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Stable-dep-of: c03d278fdf35 ("netfilter: nf_tables: wait for rcu grace period on net_device removal") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nf_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index af62804b27ec..b5f9ee5810a3 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -1157,7 +1157,7 @@ static inline bool nft_chain_is_bound(struct nft_chain *chain)
int nft_chain_add(struct nft_table *table, struct nft_chain *chain);
void nft_chain_del(struct nft_chain *chain);
-void nf_tables_chain_destroy(struct nft_ctx *ctx);
+void nf_tables_chain_destroy(struct nft_chain *chain);
struct nft_stats {
u64 bytes;