netfilter: nf_tables: Carry reset flag in nft_rule_dump_ctx
authorPhil Sutter <phil@nwl.cc>
Fri, 29 Sep 2023 19:19:20 +0000 (21:19 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 10 Oct 2023 14:34:27 +0000 (16:34 +0200)
commit405c8fd62d612dd0e1d5ca59903449616453a56d
treebc4a212e583ed09f215430affa66f3795793202b
parent30fa41a0f6df4c85790cc6499ddc4a926a113bfa
netfilter: nf_tables: Carry reset flag in nft_rule_dump_ctx

This relieves the dump callback from having to check nlmsg_type upon
each call and instead performs the check once in .start callback.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c