Refactor nft_obj_filter into nft_obj_dump_ctx
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | netfilter: nf_tables: Drop pointless memset in nf_tables_dump_objnet/ | +0 | 1 reply | |
| 2/6 | netfilter: nf_tables: Unconditionally allocate nft_obj_filternet/ | +15 | 0 replies | |
| 3/6 | netfilter: nf_tables: A better name for nft_obj_filternet/ | +16 | 0 replies | |
| 4/6 | netfilter: nf_tables: Carry s_idx in nft_obj_dump_ctxnet/ | +5 | 0 replies | |
| 5/6 | netfilter: nf_tables: nft_obj_filter fits into cb->ctxnet/ | +5 | 0 replies | |
| 6/6 | netfilter: nf_tables: Carry reset boolean in nft_obj_dump_ctxnet/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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