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 Latest11 patches 6 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11ipvs: show the current conn_tab size to usersnet/netfilter/ipvs/ip_vs_ctl.c+22 -40 repliesApplied
2/11ipvs: add ip_vs_status infonet/netfilter/ipvs/ip_vs_ctl.c+145 -00 repliesApplied
3/11ipvs: add conn_lfactor and svc_lfactor sysctl varsDocumentation/networking/ipvs-sysctl.rst net/netfilter/ipvs/ip_vs_ctl.c+113 -00 repliesApplied
4/11netfilter: x_physdev: reject empty or not-nul terminated device namesnet/netfilter/xt_physdev.c+22 -00 repliesApplied
5/11netfilter: nfnetlink: prefer skb_mac_header helpersnet/netfilter/nfnetlink_log.c net/netfilter/nfnetlink_queue.c+22 -220 repliesApplied
6/11netfilter: xt_HL: add pr_fmt and checkentry validationnet/netfilter/xt_hl.c+27 -00 repliesApplied
7/11netfilter: xt_socket: enable defrag after all other checksnet/netfilter/xt_socket.c+6 -170 repliesApplied
8/11netfilter: conntrack: remove UDP-Lite conntrack supportinclude/net/netfilter/ipv4/nf_conntrack_ipv4.h include/net/netfilter/nf_conntrack_l4proto.h net/netfilter/Kconfig +8 more+0 -1700 repliesApplied
9/11netfilter: x_tables: Avoid a couple -Wflex-array-member-not-at-end warningsnet/netfilter/x_tables.c+8 -40 repliesApplied
10/11netfilter: nft_fwd_netdev: check ttl/hl before forwardingnet/netfilter/nft_fwd_netdev.c+10 -00 repliesApplied
11/11netfilter: require Ethernet MAC header before using eth_hdr()net/ipv6/netfilter/ip6t_eui64.c net/netfilter/ipset/ip_set_bitmap_ipmac.c net/netfilter/ipset/ip_set_hash_ipmac.c +3 more+24 -140 repliesApplied

Reviews trailers per patch

None of the 11 patches has a Reviewed-by or Acked-by.

PatchRen Wei
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11T-b

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 00/11] netfilter: updates for net-next

Hi,

The following patchset contains Netfilter updates for *net-next*:

1-3) IPVS updates from Julian Anastasov to enhance visibility into
IPVS internal state by exposing hash size, load factor etc and allows userspace to tune the load factor used for resizing hash tables.

4) reject empty/not nul terminated device names from xt_physdev. This isn't a bug fix; existing code doesn't require a c-string. But clean this up anyway because conceptually the interface name definitely should be a c-string.

5) Switch nfnetlink to skb_mac_header helpers that didn't exist back when this code was written. This gives us additional debug checks but is not intended to change functionality.

6) Let the xt ttl/hoplimit match reject unknown operator modes. This is a cleanup, the evaluation function simply returns false when the mode is out of range. From Marino Dzalto.

7) xt_socket match should enable defrag after all other checks. This bug is harmless, historically defrag could not be disabled either except by rmmod.

8) remove UDP-Lite conntrack support, from Fernando Fernandez Mancera.

9) Avoid a couple -Wflex-array-member-not-at-end warnings in the old xtables 32bit compat code, from Gustavo A. R. Silva.

10) nftables fwd expression should drop packets when their ttl/hl has expired. This is a bug fix deferred, its not deemed important enough for -rc8.
11) Add additional checks before assuming the mac header is an ethernet header, from Zhengchuan Liang.

Please, pull these changes from:
The following changes since commit 42f9b4c6ef19e71d2c7d9bfd3c5037d4fe434ad7:

tools: ynl: tests: fix leading space on Makefile target (2026-04-09 20:41:40 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 62443dc21114c0bbc476fa62973db89743f2f137:

netfilter: require Ethernet MAC header before using eth_hdr() (2026-04-10 12:16:27 +0200)

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

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

Fernando Fernandez Mancera (1):
netfilter: conntrack: remove UDP-Lite conntrack support

Florian Westphal (4):
netfilter: x_physdev: reject empty or not-nul terminated device names
netfilter: nfnetlink: prefer skb_mac_header helpers
netfilter: xt_socket: enable defrag after all other checks
netfilter: nft_fwd_netdev: check ttl/hl before forwarding

Gustavo A. R. Silva (1):
netfilter: x_tables: Avoid a couple -Wflex-array-member-not-at-end warnings

Julian Anastasov (3):
ipvs: show the current conn_tab size to users
ipvs: add ip_vs_status info
ipvs: add conn_lfactor and svc_lfactor sysctl vars

Marino Dzalto (1):
netfilter: xt_HL: add pr_fmt and checkentry validation

Zhengchuan Liang (1):
netfilter: require Ethernet MAC header before using eth_hdr()

 Documentation/networking/ipvs-sysctl.rst      |  37 +++
 .../net/netfilter/ipv4/nf_conntrack_ipv4.h    |   3 -
 include/net/netfilter/nf_conntrack_l4proto.h  |   7 -
 net/ipv6/netfilter/ip6t_eui64.c               |   7 +-
 net/netfilter/Kconfig                         |  11 -
 net/netfilter/ipset/ip_set_bitmap_ipmac.c     |   5 +-
 net/netfilter/ipset/ip_set_hash_ipmac.c       |   9 +-
 net/netfilter/ipset/ip_set_hash_mac.c         |   5 +-
 net/netfilter/ipvs/ip_vs_ctl.c                | 247 +++++++++++++++++-
 net/netfilter/nf_conntrack_core.c             |   8 -
 net/netfilter/nf_conntrack_proto.c            |   3 -
 net/netfilter/nf_conntrack_proto_udp.c        | 108 --------
 net/netfilter/nf_conntrack_standalone.c       |   2 -
 net/netfilter/nf_log_syslog.c                 |   8 +-
 net/netfilter/nf_nat_core.c                   |   6 -
 net/netfilter/nf_nat_proto.c                  |  20 --
 net/netfilter/nfnetlink_cttimeout.c           |   1 -
 net/netfilter/nfnetlink_log.c                 |  19 +-
 net/netfilter/nfnetlink_queue.c               |  25 +-
 net/netfilter/nft_ct.c                        |   1 -
 net/netfilter/nft_fwd_netdev.c                |  10 +
 net/netfilter/x_tables.c                      |  12 +-
 net/netfilter/xt_hl.c                         |  27 ++
 net/netfilter/xt_mac.c                        |   4 +-
 net/netfilter/xt_physdev.c                    |  22 ++
 net/netfilter/xt_socket.c                     |  23 +-
 26 files changed, 399 insertions(+), 231 deletions(-)
Signature · 1 line
2.52.0