summaryrefslogtreecommitdiff
path: root/include/net/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-05-13 15:00:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2024-06-25 20:40:47 +0200
commit8965d42bcf54d42cbc72fe34a9d0ec3f8527debd (patch)
treece51cb2eb73c3f25123fc3751c7ad25b24c0cdbd /include/net/netfilter
parent06fcaca2ed1f7a1d02b18364fceac4525332f178 (diff)
downloadlinux-8965d42bcf54d42cbc72fe34a9d0ec3f8527debd.tar.gz
linux-8965d42bcf54d42cbc72fe34a9d0ec3f8527debd.tar.bz2
linux-8965d42bcf54d42cbc72fe34a9d0ec3f8527debd.zip
netfilter: nf_tables: pass nft_chain to destroy function, not nft_ctx
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>
Diffstat (limited to 'include/net/netfilter')
-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 1f0607b671ac..328fdc140551 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -1171,7 +1171,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;