Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 9 versions – 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 · linked by author and title

  1. v2 posting 6/615 patches 1 replyIn review
  2. v2 posting 5/613 patches 3 repliesApplied 13/13
  3. v3 Latest posting 2/217 patches 1 replyApplied 17/17
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v2 posting 4/616 patches5 repliesSuperseded
v2 posting 3/626 patches3 repliesApplied 26/26
v3 posting 1/26 patches0 repliesApplied 6/6
v2 posting 2/67 patches2 repliesSuperseded
v2 posting 1/614 patches0 repliesApplied 14/14
v114 patches4 repliesSuperseded

Patches in v3 posting 2/2 All 17 applied

#Subject and filesSizeRepliesApplied
1/17netfilter: flowtable: check for maximum number of encapsulations in bridge vlannet/netfilter/nft_flow_offload.c+8 -10 repliesApplied
2/17netfilter: flowtable: move path discovery infrastructure to its own fileinclude/net/netfilter/nf_flow_table.h net/netfilter/Makefile net/netfilter/nf_flow_table_path.c +1 more+281 -2590 repliesApplied
3/17netfilter: flowtable: consolidate xmit pathinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c net/netfilter/nf_flow_table_ip.c +1 more+57 -390 repliesApplied
4/17netfilter: flowtable: inline vlan encapsulation in xmit pathnet/netfilter/nf_flow_table_ip.c net/netfilter/nf_flow_table_path.c+29 -30 repliesApplied
5/17netfilter: flowtable: inline pppoe encapsulation in xmit pathnet/netfilter/nf_flow_table_ip.c net/netfilter/nf_flow_table_path.c+44 -70 repliesApplied
6/17netfilter: flowtable: remove hw_ifidxinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c net/netfilter/nf_flow_table_offload.c +1 more+1 -60 repliesApplied
7/17netfilter: flowtable: use tuple address to calculate next hopnet/netfilter/nf_flow_table_ip.c+12 -40 repliesApplied
8/17netfilter: flowtable: Add IPIP rx sw accelerationinclude/linux/netdevice.h include/net/netfilter/nf_flow_table.h net/ipv4/ipip.c +3 more+153 -130 repliesApplied
9/17netfilter: flowtable: Add IPIP tx sw accelerationnet/netfilter/nf_flow_table_ip.c net/netfilter/nf_flow_table_path.c+106 -40 repliesApplied
10/17selftests: netfilter: nft_flowtable.sh: Add IPIP flowtable selftesttools/testing/selftests/net/netfilter/nft_flowtable.sh+69 -00 repliesApplied
11/17netfilter: nf_conncount: rework API to use sk_buff directlyinclude/net/netfilter/nf_conntrack_count.h net/netfilter/nf_conncount.c net/netfilter/nft_connlimit.c +2 more+142 -1031 replyApplied
12/17netfilter: nf_conncount: make nf_conncount_gc_list() to disable BHnet/netfilter/nf_conncount.c net/netfilter/nft_connlimit.c+18 -130 repliesApplied
13/17netfilter: nft_connlimit: update the count if add was skippednet/netfilter/nf_conncount.c net/netfilter/nft_connlimit.c+19 -60 repliesApplied
14/17netfilter: nft_connlimit: add support to object update operationnet/netfilter/nft_connlimit.c+12 -10 repliesApplied
15/17selftests: netfilter: nft_flowtable.sh: Add the capability to send IPv6 TCP traffictools/testing/selftests/net/netfilter/nft_flowtable.sh+43 -140 repliesApplied
16/17netfilter: ip6t_srh: fix UAPI kernel-doc comments formatinclude/uapi/linux/netfilter_ipv6/ip6t_srh.h+20 -200 repliesApplied
17/17netfilter: nf_tables: improve UAPI kernel-doc commentsinclude/uapi/linux/netfilter/nf_tables.h+7 -70 repliesApplied

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by.

PatchSimon Horman
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17R-b
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next,v3 00/17] Netfilter updates for net-next

v3: - Incorrect out.ifidx in the flowtable IPV6 neigh xmit path, reported
by the AI robot.
- Fix memleak in connlimit in case no conntrack or tuple can be fetched when creating rbconn node and list, reported by AI robot.
- Fix missing WRITE_ONCE in conncount update support, reported by AI robot.
- Fixes for the nft_flowtable.sh extension made by Lorenzo Bianconi.
--

The following batch contains Netfilter updates for net-next:

0) Add sanity check for maximum encapsulations in bridge vlan, reported by the new AI robot.

1) Move the flowtable path discovery code to its own file, the nft_flow_offload.c mixes the nf_tables evaluation with the path discovery logic, just split this in two for clarity.

2) Consolidate flowtable xmit path by using dev_queue_xmit() and the real device behind the layer 2 vlan/pppoe device. This allows to inline encapsulation. After this update, hw_ifidx can be removed since both ifidx and hw_ifidx now point to the same device.

3) Support for IPIP encapsulation in the flowtable, extend selftest to cover for this new layer 3 offload, from Lorenzo Bianconi.

4) Push down the skb into the conncount API to fix duplicates in the conncount list for packets with non-confirmed conntrack entries, this is due to an optimization introduced in d265929930e2 ("netfilter: nf_conncount: reduce unnecessary GC"). From Fernando Fernandez Mancera.

5) In conncount, disable BH when performing garbage collection to consolidate existing behaviour in the conncount API, also from Fernando.

6) A matching packet with a confirmed conntrack invokes GC if conncount reaches the limit in an attempt to release slots. This allows the existing extensions to be used for real conntrack counting, not just limiting new connections, from Fernando.

7) Support for updating ct count objects in nf_tables, from Fernando.

8) Extend nft_flowtables.sh selftest to send IPv6 TCP traffic, from Lorenzo Bianconi.

9) Fixes for UAPI kernel-doc documentation, from Randy Dunlap.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-25-11-28

Thanks.

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

The following changes since commit db4029859d6fd03f0622d394f4cdb1be86d7ec62:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2025-11-27 12:19:08 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-25-11-28

for you to fetch changes up to d3a439e55c193b930e0007967cf8d7a29890449b:

netfilter: nf_tables: improve UAPI kernel-doc comments (2025-11-28 00:07:19 +0000)

----------------------------------------------------------------
netfilter pull request 25-11-28

----------------------------------------------------------------
Fernando Fernandez Mancera (4):
netfilter: nf_conncount: rework API to use sk_buff directly
netfilter: nf_conncount: make nf_conncount_gc_list() to disable BH
netfilter: nft_connlimit: update the count if add was skipped
netfilter: nft_connlimit: add support to object update operation

Lorenzo Bianconi (4):
netfilter: flowtable: Add IPIP rx sw acceleration
netfilter: flowtable: Add IPIP tx sw acceleration
selftests: netfilter: nft_flowtable.sh: Add IPIP flowtable selftest
selftests: netfilter: nft_flowtable.sh: Add the capability to send IPv6 TCP traffic

Pablo Neira Ayuso (7):
netfilter: flowtable: check for maximum number of encapsulations in bridge vlan
netfilter: flowtable: move path discovery infrastructure to its own file
netfilter: flowtable: consolidate xmit path
netfilter: flowtable: inline vlan encapsulation in xmit path
netfilter: flowtable: inline pppoe encapsulation in xmit path
netfilter: flowtable: remove hw_ifidx
netfilter: flowtable: use tuple address to calculate next hop

Randy Dunlap (2):
netfilter: ip6t_srh: fix UAPI kernel-doc comments format
netfilter: nf_tables: improve UAPI kernel-doc comments

 include/linux/netdevice.h                          |  13 +
 include/net/netfilter/nf_conntrack_count.h         |  17 +-
 include/net/netfilter/nf_flow_table.h              |  26 +-
 include/uapi/linux/netfilter/nf_tables.h           |  14 +-
 include/uapi/linux/netfilter_ipv6/ip6t_srh.h       |  40 +--
 net/ipv4/ipip.c                                    |  25 ++
 net/netfilter/Makefile                             |   1 +
 net/netfilter/nf_conncount.c                       | 211 ++++++++-----
 net/netfilter/nf_flow_table_core.c                 |   5 +-
 net/netfilter/nf_flow_table_ip.c                   | 293 +++++++++++++++---
 net/netfilter/nf_flow_table_offload.c              |   2 +-
 net/netfilter/nf_flow_table_path.c                 | 330 +++++++++++++++++++++
 net/netfilter/nft_connlimit.c                      |  54 ++--
 net/netfilter/nft_flow_offload.c                   | 252 ----------------
 net/netfilter/xt_connlimit.c                       |  14 +-
 net/openvswitch/conntrack.c                        |  16 +-
 .../selftests/net/netfilter/nft_flowtable.sh       | 126 +++++++-
 17 files changed, 980 insertions(+), 459 deletions(-)
 create mode 100644 net/netfilter/nf_flow_table_path.c