netfilter: nf_tables: pass nft_chain to destroy function, not nft_ctx
authorFlorian Westphal <fw@strlen.de>
Mon, 13 May 2024 13:00:45 +0000 (15:00 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 25 Jun 2024 18:40:47 +0000 (20:40 +0200)
commit8965d42bcf54d42cbc72fe34a9d0ec3f8527debd
treece51cb2eb73c3f25123fc3751c7ad25b24c0cdbd
parent06fcaca2ed1f7a1d02b18364fceac4525332f178
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>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_immediate.c