netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nf-next PATCH 0/6] Refactor nft_obj_filter into nft_obj_dump_ctx
@ 2023-10-20 17:34 Phil Sutter
  2023-10-20 17:34 ` [nf-next PATCH 1/6] netfilter: nf_tables: Drop pointless memset in nf_tables_dump_obj Phil Sutter
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Phil Sutter @ 2023-10-20 17:34 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

This is ultimately prep work for object reset locking, but valid on it's
own:

Make object dump routines utilize struct netlink_callback's scratch area
for context data. This requires to relocate the s_idx counter, so turn
nft_obj_filter into a real context data structure holding also the
counter (and the reset boolean as well).

Phil Sutter (6):
  netfilter: nf_tables: Drop pointless memset in nf_tables_dump_obj
  netfilter: nf_tables: Unconditionally allocate nft_obj_filter
  netfilter: nf_tables: A better name for nft_obj_filter
  netfilter: nf_tables: Carry s_idx in nft_obj_dump_ctx
  netfilter: nf_tables: nft_obj_filter fits into cb->ctx
  netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctx

 net/netfilter/nf_tables_api.c | 66 ++++++++++++++---------------------
 1 file changed, 26 insertions(+), 40 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-10-25  9:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 17:34 [nf-next PATCH 0/6] Refactor nft_obj_filter into nft_obj_dump_ctx Phil Sutter
2023-10-20 17:34 ` [nf-next PATCH 1/6] netfilter: nf_tables: Drop pointless memset in nf_tables_dump_obj Phil Sutter
2023-10-25  9:48   ` Pablo Neira Ayuso
2023-10-20 17:34 ` [nf-next PATCH 2/6] netfilter: nf_tables: Unconditionally allocate nft_obj_filter Phil Sutter
2023-10-20 17:34 ` [nf-next PATCH 3/6] netfilter: nf_tables: A better name for nft_obj_filter Phil Sutter
2023-10-20 17:34 ` [nf-next PATCH 4/6] netfilter: nf_tables: Carry s_idx in nft_obj_dump_ctx Phil Sutter
2023-10-20 17:34 ` [nf-next PATCH 5/6] netfilter: nf_tables: nft_obj_filter fits into cb->ctx Phil Sutter
2023-10-20 17:34 ` [nf-next PATCH 6/6] netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctx Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).