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 (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesApplied 22/22

Patches in v1 All 22 applied

#Subject and filesSizeRepliesApplied
1/22netfilter: nat: move nf_xfrm_me_harder to where it is usedinclude/net/netfilter/nf_nat.h net/netfilter/nf_nat_core.c net/netfilter/nf_nat_proto.c+38 -390 repliesApplied
2/22netfilter: nft_socket: add support for cgroupsv2include/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_socket.c+51 -10 repliesApplied
3/22netfilter: disable defrag once its no longer neededinclude/net/netfilter/ipv4/nf_defrag_ipv4.h include/net/netfilter/ipv6/nf_defrag_ipv6.h net/ipv4/netfilter/nf_defrag_ipv4.c +5 more+108 -160 repliesApplied
4/22netfilter: ebtables: remove the 3 ebtables pointers from struct netinclude/linux/netfilter_bridge/ebtables.h include/net/netns/x_tables.h net/bridge/netfilter/ebtable_broute.c +3 more+58 -640 repliesApplied
5/22netfilter: x_tables: remove ipt_unregister_tableinclude/linux/netfilter_ipv4/ip_tables.h include/linux/netfilter_ipv6/ip6_tables.h net/ipv4/netfilter/ip_tables.c +3 more+2 -250 repliesApplied
6/22netfilter: x_tables: add xt_find_tableinclude/linux/netfilter/x_tables.h net/netfilter/x_tables.c+18 -00 repliesApplied
7/22netfilter: iptables: unregister the tables by nameinclude/linux/netfilter_ipv4/ip_tables.h net/ipv4/netfilter/ip_tables.c net/ipv4/netfilter/iptable_filter.c +4 more+23 -350 repliesApplied
8/22netfilter: ip6tables: unregister the tables by nameinclude/linux/netfilter_ipv6/ip6_tables.h net/ipv6/netfilter/ip6_tables.c net/ipv6/netfilter/ip6table_filter.c +4 more+24 -350 repliesApplied
9/22netfilter: arptables: unregister the tables by nameinclude/linux/netfilter_arp/arp_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/arptable_filter.c+14 -120 repliesApplied
10/22netfilter: x_tables: remove paranoia testsnet/ipv4/netfilter/arptable_filter.c net/ipv4/netfilter/iptable_filter.c net/ipv4/netfilter/iptable_mangle.c +8 more+0 -330 repliesApplied
11/22netfilter: xt_nat: pass table to hookfnnet/ipv4/netfilter/iptable_nat.c net/ipv6/netfilter/ip6table_nat.c+69 -200 repliesApplied
12/22netfilter: ip_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter/x_tables.h include/linux/netfilter_ipv4/ip_tables.h net/ipv4/netfilter/ip_tables.c +6 more+71 -560 repliesApplied
13/22netfilter: arp_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter_arp/arp_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/arptable_filter.c+32 -190 repliesApplied
14/22netfilter: ip6_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter_ipv6/ip6_tables.h net/ipv6/netfilter/ip6_tables.c net/ipv6/netfilter/ip6table_filter.c +4 more+63 -570 repliesApplied
15/22netfilter: remove all xt_table anchors from struct netinclude/net/netns/ipv4.h include/net/netns/ipv6.h+0 -190 repliesApplied
16/22netfilter: nf_log_syslog: Unset bridge logger in pernet exitnet/netfilter/nf_log_syslog.c+1 -00 repliesApplied
17/22netfilter: nftables: add nft_pernet() helper functioninclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nf_tables_offload.c +2 more+69 -710 repliesApplied
18/22netfilter: nfnetlink: add struct nfnl_info and pass it to callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/ipset/ip_set_core.c net/netfilter/nf_conntrack_netlink.c +7 more+286 -3400 repliesApplied
19/22netfilter: nfnetlink: pass struct nfnl_info to rcu callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/nf_tables_api.c net/netfilter/nfnetlink.c +2 more+107 -1200 repliesApplied
20/22netfilter: nfnetlink: pass struct nfnl_info to batch callbacksinclude/linux/netfilter/nfnetlink.h net/netfilter/nf_tables_api.c net/netfilter/nfnetlink.c+182 -1760 repliesApplied
21/22netfilter: nfnetlink: consolidate callback typesinclude/linux/netfilter/nfnetlink.h net/netfilter/ipset/ip_set_core.c net/netfilter/nf_conntrack_netlink.c +9 more+271 -1240 repliesApplied
22/22netfilter: allow to turn off xtables compat layerinclude/linux/netfilter/x_tables.h include/linux/netfilter_arp/arp_tables.h include/linux/netfilter_ipv4/ip_tables.h +12 more+70 -600 repliesApplied

Reviews trailers per patch

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

PatchFlorian Westphal
1/22
2/22
3/22
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22A-b
17/22
18/22
19/22
20/22
21/22
22/22

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/22] Netfilter updates for net-next

Hi,

The following patchset contains Netfilter updates for net-next:

1) The various ip(6)table_foo incarnations are updated to expect that the table is passed as 'void *priv' argument that netfilter core passes to the hook functions. This reduces the struct net size by 2 cachelines on x86_64. From Florian Westphal.

2) Add cgroupsv2 support for nftables.

3) Fix bridge log family merge into nf_log_syslog: Missing unregistration from netns exit path, from Phil Sutter.

4) Add nft_pernet() helper to access nftables pernet area.

5) Add struct nfnl_info to reduce nfnetlink callback footprint and to facilite future updates. Consolidate nfnetlink callbacks.

6) Add CONFIG_NETFILTER_XTABLES_COMPAT Kconfig knob, also from Florian.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git

Thanks!

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

The following changes since commit b2f0ca00e6b34bd57c9298a869ea133699e8ec39:

phy: nxp-c45-tja11xx: add interrupt support (2021-04-23 14:13:16 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git HEAD

for you to fetch changes up to 47a6959fa331fe892a4fc3b48ca08e92045c6bda:

netfilter: allow to turn off xtables compat layer (2021-04-26 18:16:56 +0200)

----------------------------------------------------------------
Florian Westphal (15):
netfilter: nat: move nf_xfrm_me_harder to where it is used
netfilter: disable defrag once its no longer needed
netfilter: ebtables: remove the 3 ebtables pointers from struct net
netfilter: x_tables: remove ipt_unregister_table
netfilter: x_tables: add xt_find_table
netfilter: iptables: unregister the tables by name
netfilter: ip6tables: unregister the tables by name
netfilter: arptables: unregister the tables by name
netfilter: x_tables: remove paranoia tests
netfilter: xt_nat: pass table to hookfn
netfilter: ip_tables: pass table pointer via nf_hook_ops
netfilter: arp_tables: pass table pointer via nf_hook_ops
netfilter: ip6_tables: pass table pointer via nf_hook_ops
netfilter: remove all xt_table anchors from struct net
netfilter: allow to turn off xtables compat layer

Pablo Neira Ayuso (6):
netfilter: nft_socket: add support for cgroupsv2
netfilter: nftables: add nft_pernet() helper function
netfilter: nfnetlink: add struct nfnl_info and pass it to callbacks
netfilter: nfnetlink: pass struct nfnl_info to rcu callbacks
netfilter: nfnetlink: pass struct nfnl_info to batch callbacks
netfilter: nfnetlink: consolidate callback types

Phil Sutter (1):
netfilter: nf_log_syslog: Unset bridge logger in pernet exit

 include/linux/netfilter/nfnetlink.h         |  33 +-
 include/linux/netfilter/x_tables.h          |  16 +-
 include/linux/netfilter_arp/arp_tables.h    |   8 +-
 include/linux/netfilter_bridge/ebtables.h   |   9 +-
 include/linux/netfilter_ipv4/ip_tables.h    |  11 +-
 include/linux/netfilter_ipv6/ip6_tables.h   |  11 +-
 include/net/netfilter/ipv4/nf_defrag_ipv4.h |   3 +-
 include/net/netfilter/ipv6/nf_defrag_ipv6.h |   3 +-
 include/net/netfilter/nf_nat.h              |   2 -
 include/net/netfilter/nf_tables.h           |   8 +
 include/net/netns/ipv4.h                    |  10 -
 include/net/netns/ipv6.h                    |   9 -
 include/net/netns/x_tables.h                |   8 -
 include/uapi/linux/netfilter/nf_tables.h    |   4 +
 net/bridge/netfilter/ebt_limit.c            |   4 +-
 net/bridge/netfilter/ebt_mark.c             |   4 +-
 net/bridge/netfilter/ebt_mark_m.c           |   4 +-
 net/bridge/netfilter/ebtable_broute.c       |  10 +-
 net/bridge/netfilter/ebtable_filter.c       |  26 +-
 net/bridge/netfilter/ebtable_nat.c          |  27 +-
 net/bridge/netfilter/ebtables.c             |  54 ++-
 net/ipv4/netfilter/arp_tables.c             |  73 +--
 net/ipv4/netfilter/arptable_filter.c        |  17 +-
 net/ipv4/netfilter/ip_tables.c              |  86 ++--
 net/ipv4/netfilter/ipt_CLUSTERIP.c          |   8 +-
 net/ipv4/netfilter/iptable_filter.c         |  17 +-
 net/ipv4/netfilter/iptable_mangle.c         |  23 +-
 net/ipv4/netfilter/iptable_nat.c            |  59 ++-
 net/ipv4/netfilter/iptable_raw.c            |  17 +-
 net/ipv4/netfilter/iptable_security.c       |  17 +-
 net/ipv4/netfilter/nf_defrag_ipv4.c         |  30 +-
 net/ipv6/netfilter/ip6_tables.c             |  84 ++--
 net/ipv6/netfilter/ip6table_filter.c        |  17 +-
 net/ipv6/netfilter/ip6table_mangle.c        |  24 +-
 net/ipv6/netfilter/ip6table_nat.c           |  58 ++-
 net/ipv6/netfilter/ip6table_raw.c           |  17 +-
 net/ipv6/netfilter/ip6table_security.c      |  17 +-
 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c   |  29 +-
 net/netfilter/Kconfig                       |  10 +
 net/netfilter/ipset/ip_set_core.c           | 165 ++++---
 net/netfilter/nf_conntrack_netlink.c        | 302 +++++++------
 net/netfilter/nf_conntrack_proto.c          |   8 +-
 net/netfilter/nf_log_syslog.c               |   1 +
 net/netfilter/nf_nat_core.c                 |  37 --
 net/netfilter/nf_nat_proto.c                |  38 ++
 net/netfilter/nf_tables_api.c               | 663 ++++++++++++++--------------
 net/netfilter/nf_tables_offload.c           |  10 +-
 net/netfilter/nfnetlink.c                   |  58 ++-
 net/netfilter/nfnetlink_acct.c              |  80 ++--
 net/netfilter/nfnetlink_cthelper.c          |  57 +--
 net/netfilter/nfnetlink_cttimeout.c         | 146 +++---
 net/netfilter/nfnetlink_log.c               |  42 +-
 net/netfilter/nfnetlink_osf.c               |  21 +-
 net/netfilter/nfnetlink_queue.c             |  86 ++--
 net/netfilter/nft_chain_filter.c            |   5 +-
 net/netfilter/nft_compat.c                  |  33 +-
 net/netfilter/nft_dynset.c                  |   5 +-
 net/netfilter/nft_socket.c                  |  48 +-
 net/netfilter/nft_tproxy.c                  |  24 +
 net/netfilter/x_tables.c                    |  34 +-
 net/netfilter/xt_TPROXY.c                   |  13 +
 net/netfilter/xt_limit.c                    |   6 +-
 net/netfilter/xt_socket.c                   |  14 +
 63 files changed, 1499 insertions(+), 1264 deletions(-)