Skip to content

nfnetlink housekeeping

Pablo Neira Ayuso lkml netfilter-devel oe-lkp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5netfilter: nftables: add nft_pernet() helper functioninclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nf_tables_offload.c +2 more+69 -710 replies
2/5netfilter: nfnetlink: add struct nfnl_info and pass it to callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/ipset/ip_set_core.c net/netfilter/nf_conntrack_netlink.c +7 more+286 -3400 replies
3/5netfilter: nfnetlink: pass struct nfnl_info to rcu callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/nf_tables_api.c net/netfilter/nfnetlink.c +2 more+106 -1180 replies
4/5netfilter: nfnetlink: pass struct nfnl_info to batch callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/nf_tables_api.c net/netfilter/nfnetlink.c+182 -1760 replies
5/5netfilter: nfnetlink: consolidate callback typesinclude/linux/netfilter/nfnetlink.h net/netfilter/ipset/ip_set_core.c net/netfilter/nf_conntrack_netlink.c +9 more+271 -1240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nf-next 0/5] nfnetlink housekeeping

Hi,

This patchset contains updates for the nfnetlink infrastructure and its users.

1) Add nft_pernet() helper to obtain the nftables pernet area.

2) Add the nfnl_info structure to reduce the footprint of the nfnetlink callbacks. Update the rcu, mutex and batch callbacks to use it.

3) Add a callback type field to consolidate the nfnetlink subsystem callbacks.

Whenever possible, I have applied reverse xmas tree to variable definitions.

Pablo Neira Ayuso (5):
netfilter: nftables: add nft_pernet() helper function
netfilter: nfnetlink: add struct nfnl_info and pass it to callbacks
netfilter: nfnetlink: pass struct nfnl_info to rcu callbacks
netfilter: nfnetlink: pass struct nfnl_info to batch callbacks
netfilter: nfnetlink: consolidate callback types

 include/linux/netfilter/nfnetlink.h  |  33 +-
 include/net/netfilter/nf_tables.h    |   8 +
 net/netfilter/ipset/ip_set_core.c    | 165 ++++---
 net/netfilter/nf_conntrack_netlink.c | 302 ++++++------
 net/netfilter/nf_tables_api.c        | 663 ++++++++++++++-------------
 net/netfilter/nf_tables_offload.c    |  10 +-
 net/netfilter/nfnetlink.c            |  58 ++-
 net/netfilter/nfnetlink_acct.c       |  80 ++--
 net/netfilter/nfnetlink_cthelper.c   |  57 +--
 net/netfilter/nfnetlink_cttimeout.c  | 146 +++---
 net/netfilter/nfnetlink_log.c        |  42 +-
 net/netfilter/nfnetlink_osf.c        |  21 +-
 net/netfilter/nfnetlink_queue.c      |  84 ++--
 net/netfilter/nft_chain_filter.c     |   5 +-
 net/netfilter/nft_compat.c           |  32 +-
 net/netfilter/nft_dynset.c           |   5 +-
 16 files changed, 898 insertions(+), 813 deletions(-)
Signature · 1 line
2.30.2