Skip to content

netfilter updates for -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 Latest9 patches 3 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9netfilter: uapi: Document NFT_TABLE_F_OWNER flaginclude/uapi/linux/netfilter/nf_tables.h+1 -00 repliesApplied
2/9netfilter: nf_tables: Introduce NFT_TABLE_F_PERSISTinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+11 -10 repliesApplied
3/9netfilter: nf_tables: Implement table adoption supportinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+22 -30 repliesApplied
4/9netfilter: nf_tables: pass flags to set backend selection routinenet/netfilter/nf_tables_api.c+2 -70 repliesApplied
5/9netfilter: nf_conncount: Use KMEM_CACHE instead of kmem_cache_create()net/netfilter/nf_conncount.c+2 -60 repliesApplied
6/9ipvs: Simplify the allocation of ip_vs_conn slab cachesnet/netfilter/ipvs/ip_vs_conn.c+1 -30 repliesApplied
7/9netfilter: arptables: allow xtables-nft only buildsnet/ipv4/netfilter/Kconfig+13 -150 repliesApplied
8/9netfilter: xtables: allow xtables-nft only buildsnet/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile net/ipv6/netfilter/Kconfig +2 more+34 -170 repliesApplied
9/9netfilter: ebtables: allow xtables-nft only buildsnet/bridge/netfilter/Kconfig net/bridge/netfilter/Makefile+8 -10 repliesApplied

Reviews trailers per patch

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

PatchSimon HormanPhil Sutter
1/9
2/9
3/9
4/9
5/9
6/9A-b
7/9R-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 nf-next 0/9] netfilter updates for -next

Hello,

This batch contains updates for your *next* tree.

First three changes, from Phil Sutter, allow userspace to define a table that is exclusively owned by a daemon (via netlink socket aliveness) without auto-removing this table when the userspace program exits. Such table gets marked as orphaned and a restarting management daemon may re-attach/reassume ownership.

Next patch, from Pablo, passes already-validated flags variable around rather than having called code re-fetch it from netlnik message.

Patches 5 and 6 update ipvs and nf_conncount to use the recently introduced KMEM_CACHE() macro.

Last three patches, from myself, tweak kconfig logic a little to permit a kernel configuration that can run iptables-over-nftables but not classic (setsockopt) iptables.

Such builds lack the builtin-filter/mangle/raw/nat/security tables, the set/getsockopt interface and the "old blob format" interpreter/traverser. For now, this is 'oldconfig friendly', users need to manually deselect existing config options for this.

The following changes since commit 723de3ebef03bc14bd72531f00f9094337654009:

net: free altname using an RCU callback (2024-01-29 14:40:38 +0000)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-24-01-29

for you to fetch changes up to 7ad269787b6615ca56bb161063331991fce51abf:

netfilter: ebtables: allow xtables-nft only builds (2024-01-29 15:43:21 +0100)

----------------------------------------------------------------
nf-next pr 2024-01-29

----------------------------------------------------------------
Florian Westphal (3):
netfilter: arptables: allow xtables-nft only builds
netfilter: xtables: allow xtables-nft only builds
netfilter: ebtables: allow xtables-nft only builds

Kunwu Chan (2):
netfilter: nf_conncount: Use KMEM_CACHE instead of kmem_cache_create()
ipvs: Simplify the allocation of ip_vs_conn slab caches

Pablo Neira Ayuso (1):
netfilter: nf_tables: pass flags to set backend selection routine

Phil Sutter (3):
netfilter: uapi: Document NFT_TABLE_F_OWNER flag
netfilter: nf_tables: Introduce NFT_TABLE_F_PERSIST
netfilter: nf_tables: Implement table adoption support

 include/net/netfilter/nf_tables.h        |  6 +++++
 include/uapi/linux/netfilter/nf_tables.h |  6 ++++-
 net/bridge/netfilter/Kconfig             |  7 ++++++
 net/bridge/netfilter/Makefile            |  2 +-
 net/ipv4/netfilter/Kconfig               | 43 +++++++++++++++++++-------------
 net/ipv4/netfilter/Makefile              |  2 +-
 net/ipv6/netfilter/Kconfig               | 20 ++++++++++-----
 net/ipv6/netfilter/Makefile              |  2 +-
 net/netfilter/Kconfig                    | 12 ++++-----
 net/netfilter/ipvs/ip_vs_conn.c          |  4 +--
 net/netfilter/nf_conncount.c             |  8 ++----
 net/netfilter/nf_tables_api.c            | 35 ++++++++++++++++++--------
 12 files changed, 94 insertions(+), 53 deletions(-)