Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso 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 Latest9 patches 5 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9netfilter: conncount: normalize tuple and zone on successful ct lookupnet/netfilter/nf_conncount.c+2 -00 repliesApplied
2/9netfilter: flowtable: consolidate net_device field in nft_forward_info structnet/netfilter/nf_flow_table_path.c+8 -120 repliesApplied
3/9netfilter: flowtable: consolidate flowtable device checknet/netfilter/nf_flow_table_path.c+9 -60 repliesApplied
4/9net: dsa: stop at the user device in .fill_forward_pathnet/dsa/user.c net/netfilter/nf_flow_table_path.c+3 -70 repliesApplied
5/9net: do not advance stack index from dev_fwd_path()net/core/dev.c+4 -40 repliesApplied
6/9net: pass dst via net_device_path in dev_fill_forward_path()drivers/net/ethernet/airoha/airoha_ppe.c drivers/net/ethernet/mediatek/mtk_ppe_offload.c include/linux/netdevice.h +1 more+47 -110 repliesApplied
7/9netfilter: flowtable: release tunnel route on error when building forward pathnet/ipv4/ipip.c net/ipv6/ip6_tunnel.c net/netfilter/nf_flow_table_path.c+21 -502 repliesApplied
8/9netfilter: nf_tables: call skb_valid_dst() before skb_dst()net/ipv4/netfilter/nf_reject_ipv4.c net/ipv6/netfilter/nf_reject_ipv6.c net/netfilter/nft_meta.c +2 more+26 -90 repliesApplied
9/9netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packetsnet/netfilter/nf_conntrack_proto_tcp.c+3 -22 repliesApplied

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchLorenzo Bianconi
1/9
2/9A-b
3/9A-b
4/9
5/9A-b
6/9A-b
7/9A-b
8/9
9/9

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

Read the v1 thread

Cover letter [PATCH net-next 0/9] Netfilter updates for net-next

Hi,

The following patchset contains Netfilter updates for net-next:

1) Update conncount to use the original tuple after ct lookup to ensure consistent counting, from Fernando F. Mancera.

2) Remove redundant net_device field in info structure that helps parse the flowtable path discovery.

3) Move net_device to flowtable check to the flowtable discovery path parser. This is preparation work to pass the tunnel dst_entry via .fill_forward_path.

4) Update DSA .fill_forward_path to break at the user DSA, since the conduit DSA is not used in the datapath. This slighly simplifies the flowtable path discovery parser.

5) Do not advance index in the path stack prematurely, otherwise it points to uninitialized slots on error. Not an issue currently but it could be once tunnel dst_entry is passed via .fill_forward_path.

6) Pass the tunnel dst_entry via dev_fill_forward_path().

7) Update ipip and ip6ip6 tunnels to pass the dst_entry through dev_fill_forward_path().

8) Call skb_valid_dst() before accessing skb_dst() to ensure dst_entry is not a template.

9) Use UNACK timeout when RST packet does not match the expected window while in ESTABLISHED state, the existing approach the CLOSE state timeout which is only 10 seconds. Adopt a more conservative timeout by default for this case.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git nf-next-26-07-31

Thanks.

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

The following changes since commit 2fbade66245059c78daeaccfce13ecf499fffb51:

Merge branch 'net-mctp-usb-add-support-for-mctp-over-usb-v1-1' (2026-07-30 16:55:02 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-26-07-31

for you to fetch changes up to bf80e6802273a900311b44e47c9b1a59c6d2473c:

netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets (2026-07-31 14:47:03 +0200)

----------------------------------------------------------------
netfilter pull request 26-07-31

----------------------------------------------------------------
Fernando Fernandez Mancera (1):
netfilter: conncount: normalize tuple and zone on successful ct lookup

Minghao Zhang (1):
netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets

Pablo Neira Ayuso (7):
netfilter: flowtable: consolidate net_device field in nft_forward_info struct
netfilter: flowtable: consolidate flowtable device check
net: dsa: stop at the user device in .fill_forward_path
net: do not advance stack index from dev_fwd_path()
net: pass dst via net_device_path in dev_fill_forward_path()
netfilter: flowtable: release tunnel route on error when building forward path
netfilter: nf_tables: call skb_valid_dst() before skb_dst()

 drivers/net/ethernet/airoha/airoha_ppe.c        |  10 ++-
 drivers/net/ethernet/mediatek/mtk_ppe_offload.c |  10 ++-
 include/linux/netdevice.h                       |   2 +
 net/core/dev.c                                  |  44 +++++++---
 net/dsa/user.c                                  |   3 +-
 net/ipv4/ipip.c                                 |   2 +-
 net/ipv4/netfilter/nf_reject_ipv4.c             |   6 +-
 net/ipv6/ip6_tunnel.c                           |   4 +-
 net/ipv6/netfilter/nf_reject_ipv6.c             |   8 +-
 net/netfilter/nf_conncount.c                    |   2 +
 net/netfilter/nf_conntrack_proto_tcp.c          |   5 +-
 net/netfilter/nf_flow_table_path.c              | 103 ++++++++----------------
 net/netfilter/nft_meta.c                        |   6 +-
 net/netfilter/nft_rt.c                          |   6 +-
 net/netfilter/nft_xfrm.c                        |   9 ++-
 15 files changed, 121 insertions(+), 99 deletions(-)