netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctx
authorPhil Sutter <phil@nwl.cc>
Fri, 20 Oct 2023 17:34:33 +0000 (19:34 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2023 11:16:30 +0000 (13:16 +0200)
commita552339063d37b3b1133d9dfc31f851edafb27bb
treec974c6f9cb2bd2a20d60a0e8eed504ce0ad4e194
parent5a893b9cdf6fa5758f43d323a1d7fa6d1bf489ff
netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctx

Relieve the dump callback from having to inspect nlmsg_type upon each
call, just do it once at start of the dump.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c