Skip to content

Refactor nft_obj_filter into nft_obj_dump_ctx

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: nf_tables: Drop pointless memset in nf_tables_dump_objnet/netfilter/nf_tables_api.c+0 -31 reply
2/6netfilter: nf_tables: Unconditionally allocate nft_obj_filternet/netfilter/nf_tables_api.c+15 -210 replies
3/6netfilter: nf_tables: A better name for nft_obj_filternet/netfilter/nf_tables_api.c+16 -160 replies
4/6netfilter: nf_tables: Carry s_idx in nft_obj_dump_ctxnet/netfilter/nf_tables_api.c+5 -40 replies
5/6netfilter: nf_tables: nft_obj_filter fits into cb->ctxnet/netfilter/nf_tables_api.c+5 -110 replies
6/6netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctxnet/netfilter/nf_tables_api.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [nf-next PATCH 0/6] Refactor nft_obj_filter into nft_obj_dump_ctx

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(-)
Signature · 1 line
2.41.0