Skip to content

netfilter: updates for net-next

Florian Westphal netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesApplied 14/14

Patches in v1 All 14 applied

#Subject and filesSizeRepliesApplied
1/14ipv6: export fib6_lookup for nft_fib_ipv6net/ipv6/fib6_rules.c net/ipv6/ip6_fib.c+6 -00 repliesApplied
2/14ipv6: make ipv6_anycast_destination logic usable without dst_entryinclude/net/ip6_route.h+11 -40 repliesApplied
3/14netfilter: nft_fib_ipv6: switch to fib6_lookupnet/ipv6/netfilter/nft_fib_ipv6.c+49 -300 repliesApplied
4/14netfilter: nf_log_syslog: no longer acquire sk_callback_lock in nf_log_dump_sk_uid_gid()net/netfilter/nf_log_syslog.c+12 -40 repliesApplied
5/14netfilter: xt_owner: no longer acquire sk_callback_lock in mt_owner()net/netfilter/xt_owner.c+14 -140 repliesApplied
6/14netfilter: nft_meta: no longer acquire sk_callback_lock in nft_meta_get_eval_skugid()net/netfilter/nft_meta.c+13 -100 repliesApplied
7/14netfilter: nfnetlink_log: no longer acquire sk_callback_locknet/netfilter/nfnetlink_log.c+13 -60 repliesApplied
8/14netfilter: nfnetlink_queue: no longer acquire sk_callback_locknet/netfilter/nfnetlink_queue.c+12 -50 repliesApplied
9/14netfilter: nfnetlink_queue: remove locking in nfqnl_get_sk_secctxnet/netfilter/nfnetlink_queue.c+0 -70 repliesApplied
10/14rculist_bl: add hlist_bl_for_each_entry_continue_rcuinclude/linux/rculist_bl.h+40 -90 repliesApplied
11/14ipvs: add resizable hash tablesinclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_conn.c net/netfilter/ipvs/ip_vs_core.c+377 -50 repliesApplied
12/14ipvs: use resizable hash table for servicesinclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_ctl.c+593 -1290 repliesApplied
13/14ipvs: switch to per-net connection tableinclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_conn.c net/netfilter/ipvs/ip_vs_ctl.c +2 more+667 -2610 repliesApplied
14/14ipvs: use more keys for connection hashinginclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_conn.c+275 -1000 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 00/14] netfilter: updates for net-next

Hi,

The following patchset contains Netfilter updates for *net-next*, including changes to IPv6 stack and updates to IPVS from Julian Anastasov.

1) ipv6: export fib6_lookup for nft_fib_ipv6 module
2) factor out ipv6_anycast_destination logic so its usable without dst_entry. These are dependencies for patch 3.
3) switch nft_fib_ipv6 module to no longer need temporary dst_entry object allocations by using fib6_lookup() + RCU.
This gets us ~13% higher packet rate in my tests.

Patches 4 to 8, from Eric Dumazet, zap sk_callback_lock usage in netfilter. Patch 9 removes another sk_callback_lock instance.

Remaining patches, from Julian Anastasov, improve IPVS, Quoting Julian:
* Add infrastructure for resizable hash tables based on hlist_bl.
* Change the 256-bucket service hash table to be resizable.
* Change the global connection table to be per-net and resizable.
* Make connection hashing more secure for setups with multiple services.

Please, pull these changes from:
The following changes since commit 4ad96a7c9e2cebbbdc68369438a736a133539f1d:

selftests: net: add macvlan multicast test for shared source MAC (2026-03-03 18:08:13 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-26-03-04

for you to fetch changes up to f20c73b0460d15301cf1bddf0f85d060a38a75df:

ipvs: use more keys for connection hashing (2026-03-04 11:45:45 +0100)

----------------------------------------------------------------
netfilter pull request nf-next-26-03-04

----------------------------------------------------------------

Eric Dumazet (5):
netfilter: nf_log_syslog: no longer acquire sk_callback_lock in

    nf_log_dump_sk_uid_gid()

netfilter: xt_owner: no longer acquire sk_callback_lock in mt_owner()
netfilter: nft_meta: no longer acquire sk_callback_lock in
nft_meta_get_eval_skugid()
netfilter: nfnetlink_log: no longer acquire sk_callback_lock
netfilter: nfnetlink_queue: no longer acquire sk_callback_lock

Florian Westphal (4):
ipv6: export fib6_lookup for nft_fib_ipv6
ipv6: make ipv6_anycast_destination logic usable without dst_entry
netfilter: nft_fib_ipv6: switch to fib6_lookup
netfilter: nfnetlink_queue: remove locking in nfqnl_get_sk_secctx

Julian Anastasov (5):
rculist_bl: add hlist_bl_for_each_entry_continue_rcu
ipvs: add resizable hash tables
ipvs: use resizable hash table for services
ipvs: switch to per-net connection table
ipvs: use more keys for connection hashing

 include/linux/rculist_bl.h        |  49 +-
 include/net/ip6_route.h           |  15 +-
 include/net/ip_vs.h               | 377 ++++++++++--
 net/ipv6/fib6_rules.c             |   3 +
 net/ipv6/ip6_fib.c                |   3 +
 net/ipv6/netfilter/nft_fib_ipv6.c |  79 ++-
 net/netfilter/ipvs/ip_vs_conn.c   | 991 ++++++++++++++++++++++--------
 net/netfilter/ipvs/ip_vs_core.c   | 179 ++++++
 net/netfilter/ipvs/ip_vs_ctl.c    | 691 +++++++++++++++++----
 net/netfilter/ipvs/ip_vs_pe_sip.c |   4 +-
 net/netfilter/ipvs/ip_vs_sync.c   |  23 +
 net/netfilter/nf_log_syslog.c     |  16 +-
 net/netfilter/nfnetlink_log.c     |  19 +-
 net/netfilter/nfnetlink_queue.c   |  24 +-
 net/netfilter/nft_meta.c          |  23 +-
 net/netfilter/xt_owner.c          |  28 +-
 16 files changed, 2011 insertions(+), 513 deletions(-)
Signature · 1 line
2.52.0