netfilter: nf_tables: pass nft_chain to destroy function, not nft_ctx

commit 8965d42bcf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Florian Westphal 2025-05-20 01:35:13 +02:00 • committed by Greg Kroah-Hartman
commit ba674db81a
3 changed files with 10 additions and 11 deletions