Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest32 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32netfilter: conntrack: warn the user if there is a better helper to usenet/netfilter/nf_conntrack_proto_generic.c+7 -10 replies
2/32netfilter: bridge: refactor clearing BRNF_NF_BRIDGE_PREROUTINGnet/bridge/br_netfilter.c+2 -20 replies
3/32netfilter: bridge: re-order br_nf_pre_routing_finish_ipv6()net/bridge/br_netfilter.c+32 -310 replies
4/32netfilter: bridge: detect NAT66 correctly and change MAC addressinclude/linux/netfilter_ipv6.h include/linux/skbuff.h net/bridge/br_netfilter.c +1 more+53 -100 replies
5/32netfilter: bridge: refactor frag_max_sizeinclude/linux/skbuff.h net/bridge/br_netfilter.c net/bridge/br_private.h+8 -140 replies
6/32netfilter: bridge: rename br_parse_ip_optionsnet/bridge/br_netfilter.c+4 -50 replies
7/32netfilter: bridge: re-order check_hbh_len()net/bridge/br_netfilter.c+56 -550 replies
8/32netfilter: bridge: forward IPv6 fragmented packetsinclude/linux/netfilter_ipv6.h net/bridge/br_netfilter.c net/bridge/br_private.h +1 more+108 -420 replies
9/32net: ip_fragment: remove BRIDGE_NETFILTER mtu special handlinginclude/linux/netfilter_bridge.h net/bridge/br_netfilter.c net/ipv4/ip_output.c+7 -110 replies
10/32netfilter: bridge: restore vlan tag when refragmentingnet/bridge/br_netfilter.c+10 -00 replies
11/32netfilter: xtables: use percpu rule countersinclude/linux/netfilter/x_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c +1 more+129 -140 replies
12/32netfilter: xtables: avoid percpu ruleset duplicationinclude/linux/netfilter/x_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c +2 more+57 -1490 replies
13/32netfilter: ipset: Use MSEC_PER_SEC consistentlyinclude/linux/netfilter/ipset/ip_set_timeout.h+2 -20 replies
14/32netfilter: ipset: Use SET_WITH_*() helpers to test set extensionsnet/netfilter/ipset/ip_set_core.c net/netfilter/ipset/ip_set_hash_gen.h+7 -70 replies
15/32netfilter: ipset: Check extensions attributes before getting extensions.net/netfilter/ipset/ip_set_bitmap_ip.c net/netfilter/ipset/ip_set_bitmap_ipmac.c net/netfilter/ipset/ip_set_bitmap_port.c +13 more+29 -1700 replies
16/32netfilter: ipset: Permit CIDR equal to the host address CIDR in IPv6net/netfilter/ipset/ip_set_hash_ip.c net/netfilter/ipset/ip_set_hash_ipmark.c net/netfilter/ipset/ip_set_hash_ipport.c +2 more+43 -150 replies
17/32netfilter: ipset: Make sure we always return line number on batchnet/netfilter/ipset/ip_set_bitmap_ip.c net/netfilter/ipset/ip_set_bitmap_ipmac.c net/netfilter/ipset/ip_set_bitmap_port.c +12 more+75 -750 replies
18/32netfilter: ipset: Check CIDR value only when attribute is givennet/netfilter/ipset/ip_set_hash_net.c net/netfilter/ipset/ip_set_hash_netiface.c net/netfilter/ipset/ip_set_hash_netnet.c +1 more+41 -490 replies
19/32netfilter: ipset: Fix cidr handling for hash:*net* typesinclude/linux/netfilter/ipset/ip_set.h net/netfilter/ipset/ip_set_hash_gen.h net/netfilter/ipset/ip_set_hash_ipportnet.c +5 more+42 -360 replies
20/32netfilter: ipset: Fix parallel resizing and listing of the same setinclude/linux/netfilter/ipset/ip_set.h net/netfilter/ipset/ip_set_core.c net/netfilter/ipset/ip_set_hash_gen.h+66 -200 replies
21/32netfilter: ipset: Make sure listing doesn't grab a set which is just being destroyed.net/netfilter/ipset/ip_set_core.c+34 -150 replies
22/32netfilter:ipset Remove rbtree from hash:net,ifacenet/netfilter/ipset/ip_set_hash_netiface.c+20 -1430 replies
23/32netfilter: ipset: Prepare the ipset core to use RCU at set levelinclude/linux/netfilter/ipset/ip_set.h include/linux/netfilter/ipset/ip_set_comment.h include/linux/netfilter/ipset/ip_set_timeout.h +1 more+66 -500 replies
24/32netfilter: ipset: Introduce RCU locking in bitmap:* typesnet/netfilter/ipset/ip_set_bitmap_gen.h net/netfilter/ipset/ip_set_bitmap_ip.c net/netfilter/ipset/ip_set_bitmap_ipmac.c +1 more+38 -140 replies
25/32netfilter: ipset: Introduce RCU locking in hash:* typesnet/netfilter/ipset/ip_set_hash_gen.h net/netfilter/ipset/ip_set_hash_ip.c net/netfilter/ipset/ip_set_hash_ipmark.c +9 more+364 -2360 replies
26/32netfilter: ipset: Introduce RCU locking in list typenet/netfilter/ipset/ip_set_list_set.c+189 -2090 replies
27/32netfilter: ipset: Fix coding styles reported by checkpatch.plinclude/linux/netfilter/ipset/ip_set.h include/uapi/linux/netfilter/ipset/ip_set.h net/netfilter/ipset/ip_set_bitmap_gen.h +20 more+327 -2950 replies
28/32netfilter: Kconfig: get rid of parens around depends onnet/ipv4/netfilter/Kconfig net/ipv6/netfilter/Kconfig net/netfilter/Kconfig+13 -110 replies
29/32netfilter: x_tables: remove XT_TABLE_INFO_SZ and a dereference.include/linux/netfilter/x_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c +2 more+19 -300 replies
30/32netfilter: nf_tables: attach net_device to basechaininclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+46 -410 replies
31/32netfilter: nf_tables: add nft_register_basechain() and nft_unregister_basechain()net/netfilter/nf_tables_api.c+37 -150 replies
32/32netfilter: nf_tables_netdev: unregister hooks on net_device removalinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nf_tables_netdev.c+94 -40 replies

Reviews trailers per patch

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

PatchJesper Dangaard BrouerEric Dumazet
1/32
2/32
3/32
4/32
5/32
6/32
7/32
8/32
9/32
10/32
11/32A-b A-b
12/32A-b A-b
13/32
14/32
15/32
16/32
17/32
18/32
19/32
20/32
21/32
22/32
23/32
24/32
25/32Performance-tested-by
26/32
27/32
28/32
29/32
30/32
31/32
32/32

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

Hi David,

This a bit large (and late) patchset that contains Netfilter updates for net-next. Most relevantly br_netfilter fixes, ipset RCU support, removal of x_tables percpu ruleset copy and rework of the nf_tables netdev support. More specifically, they are:

1) Warn the user when there is a better protocol conntracker available, from Marcelo Ricardo Leitner.

2) Fix forwarding of IPv6 fragmented traffic in br_netfilter, from Bernhard Thaler. This comes with several patches to prepare the change in first place.

3) Get rid of special mtu handling of PPPoE/VLAN frames for br_netfilter. This is not needed anymore since now we use the largest fragment size to refragment, from Florian Westphal.

4) Restore vlan tag when refragmenting in br_netfilter, also from Florian.

5) Get rid of the percpu ruleset copy in x_tables, from Florian. Plus another follow up patch to refine it from Eric Dumazet.

6) Several ipset cleanups, fixes and finally RCU support, from Jozsef Kadlecsik.

7) Get rid of parens in Netfilter Kconfig files.

8) Attach the net_device to the basechain as opposed to the initial per table approach in the nf_tables netdev family.

9) Subscribe to netdev events to detect the removal and registration of a device that is referenced by a basechain.

You can pull these changes from:

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

Have a nice and safe travel to NFWS in Budapest.

Thanks!

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

The following changes since commit c63264def3393dd123bfa630a7a46b5d6d2d6038:

Merge branch 'tcp-gso-settings-defer' (2015-06-11 16:33:11 -0700)

are available in the git repository at:

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

for you to fetch changes up to 835b803377f5f11f9ccf234f70ed667a82605c45:

netfilter: nf_tables_netdev: unregister hooks on net_device removal (2015-06-15 23:02:35 +0200)

----------------------------------------------------------------
Bernhard Thaler (7):
netfilter: bridge: refactor clearing BRNF_NF_BRIDGE_PREROUTING
netfilter: bridge: re-order br_nf_pre_routing_finish_ipv6()
netfilter: bridge: detect NAT66 correctly and change MAC address
netfilter: bridge: refactor frag_max_size
netfilter: bridge: rename br_parse_ip_options
netfilter: bridge: re-order check_hbh_len()
netfilter: bridge: forward IPv6 fragmented packets

Eric Dumazet (1):
netfilter: x_tables: remove XT_TABLE_INFO_SZ and a dereference.

Florian Westphal (4):
net: ip_fragment: remove BRIDGE_NETFILTER mtu special handling
netfilter: bridge: restore vlan tag when refragmenting
netfilter: xtables: use percpu rule counters
netfilter: xtables: avoid percpu ruleset duplication

Jozsef Kadlecsik (10):
netfilter: ipset: Use MSEC_PER_SEC consistently
netfilter: ipset: Fix cidr handling for hash:*net* types
netfilter: ipset: Fix parallel resizing and listing of the same set
netfilter: ipset: Make sure listing doesn't grab a set which is just being destroyed. netfilter:ipset Remove rbtree from hash:net,iface
netfilter: ipset: Prepare the ipset core to use RCU at set level
netfilter: ipset: Introduce RCU locking in bitmap:* types
netfilter: ipset: Introduce RCU locking in hash:* types
netfilter: ipset: Introduce RCU locking in list type
netfilter: ipset: Fix coding styles reported by checkpatch.pl

Marcelo Ricardo Leitner (1):
netfilter: conntrack: warn the user if there is a better helper to use

Pablo Neira Ayuso (5):
netfilter: Kconfig: get rid of parens around depends on
Merge branch 'master' of git://blackhole.kfki.hu/nf-next
netfilter: nf_tables: attach net_device to basechain
netfilter: nf_tables: add nft_register_basechain() and nft_unregister_basechain()
netfilter: nf_tables_netdev: unregister hooks on net_device removal

Sergey Popovich (5):
netfilter: ipset: Use SET_WITH_*() helpers to test set extensions
netfilter: ipset: Check extensions attributes before getting extensions.
netfilter: ipset: Permit CIDR equal to the host address CIDR in IPv6
netfilter: ipset: Make sure we always return line number on batch
netfilter: ipset: Check CIDR value only when attribute is given

 include/linux/netfilter/ipset/ip_set.h         |   29 +-
 include/linux/netfilter/ipset/ip_set_comment.h |   38 +-
 include/linux/netfilter/ipset/ip_set_timeout.h |   27 +-
 include/linux/netfilter/x_tables.h             |   56 +-
 include/linux/netfilter_bridge.h               |    7 -
 include/linux/netfilter_ipv6.h                 |    3 +
 include/linux/skbuff.h                         |    7 +-
 include/net/netfilter/nf_tables.h              |   11 +-
 include/uapi/linux/netfilter/ipset/ip_set.h    |    6 +-
 include/uapi/linux/netfilter/nf_tables.h       |    4 +-
 net/bridge/br_netfilter.c                      |  398 ++++++++-----
 net/bridge/br_private.h                        |    7 +-
 net/ipv4/ip_output.c                           |    4 -
 net/ipv4/netfilter/Kconfig                     |    3 +-
 net/ipv4/netfilter/arp_tables.c                |   86 +--
 net/ipv4/netfilter/ip_tables.c                 |   95 ++--
 net/ipv6/netfilter.c                           |    2 +
 net/ipv6/netfilter/Kconfig                     |    3 +-
 net/ipv6/netfilter/ip6_tables.c                |   96 ++--
 net/netfilter/Kconfig                          |   18 +-
 net/netfilter/ipset/ip_set_bitmap_gen.h        |   44 +-
 net/netfilter/ipset/ip_set_bitmap_ip.c         |   27 +-
 net/netfilter/ipset/ip_set_bitmap_ipmac.c      |   46 +-
 net/netfilter/ipset/ip_set_bitmap_port.c       |   24 +-
 net/netfilter/ipset/ip_set_core.c              |  344 ++++++------
 net/netfilter/ipset/ip_set_getport.c           |   13 +-
 net/netfilter/ipset/ip_set_hash_gen.h          |  714 +++++++++++++++---------
 net/netfilter/ipset/ip_set_hash_ip.c           |   39 +-
 net/netfilter/ipset/ip_set_hash_ipmark.c       |   46 +-
 net/netfilter/ipset/ip_set_hash_ipport.c       |   51 +-
 net/netfilter/ipset/ip_set_hash_ipportip.c     |   53 +-
 net/netfilter/ipset/ip_set_hash_ipportnet.c    |   58 +-
 net/netfilter/ipset/ip_set_hash_mac.c          |   19 +-
 net/netfilter/ipset/ip_set_hash_net.c          |   49 +-
 net/netfilter/ipset/ip_set_hash_netiface.c     |  225 ++------
 net/netfilter/ipset/ip_set_hash_netnet.c       |  120 ++--
 net/netfilter/ipset/ip_set_hash_netport.c      |   52 +-
 net/netfilter/ipset/ip_set_hash_netportnet.c   |  128 ++---
 net/netfilter/ipset/ip_set_list_set.c          |  419 +++++++-------
 net/netfilter/ipset/pfxlen.c                   |   16 +-
 net/netfilter/nf_conntrack_proto_generic.c     |    8 +-
 net/netfilter/nf_tables_api.c                  |  139 +++--
 net/netfilter/nf_tables_netdev.c               |   75 +++
 net/netfilter/x_tables.c                       |   37 +-
 net/netfilter/xt_set.c                         |   44 +-
 45 files changed, 1972 insertions(+), 1718 deletions(-)