Skip to content

Netfilter/IPVS 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 Latest23 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23netfilter: ipset: Compress return logicnet/netfilter/ipset/ip_set_list_set.c+1 -40 replies
2/23netfilter: ipset: Fix sparse warningsnet/netfilter/ipset/ip_set_hash_ipportnet.c+1 -10 replies
3/23netfilter: ipset: deduplicate prefixlen mapsnet/netfilter/ipset/pfxlen.c+137 -2580 replies
4/23netfilter: nat: use test_and_clear_bit when deleting ct from bysource listnet/netfilter/nf_nat_core.c+3 -60 replies
5/23netfilter: conntrack: add and use nf_l4proto_log_invalidinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_proto_icmp.c net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +5 more+82 -520 replies
6/23netfilter: conntrack: add and use nf_ct_l4proto_log_invalidinclude/net/netfilter/nf_conntrack_l4proto.h net/netfilter/nf_conntrack_proto.c net/netfilter/nf_conntrack_proto_dccp.c +1 more+45 -340 replies
7/23netfilter: conntrack: remove pf argument from l4 packet functionsinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_proto_icmp.c net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +7 more+3 -130 replies
8/23netfilter: x_tables: make xt_replace_table wait until old rules are not used anymorenet/netfilter/x_tables.c+18 -30 replies
9/23netfilter: x_tables: don't use seqlock when fetching old countersnet/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c+61 -60 replies
10/23netfilter: conntrack: make l3proto trackers constinclude/net/netfilter/ipv4/nf_conntrack_ipv4.h include/net/netfilter/ipv6/nf_conntrack_ipv6.h net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +1 more+4 -40 replies
11/23netfilter: nf_conntrack_h323: Remove typedef structnet/netfilter/nf_conntrack_h323_asn1.c+40 -400 replies
12/23netfilter: xt_connlimit: don't store address in the conn nodesnet/netfilter/xt_connlimit.c+0 -30 replies
13/23netfilter: nf_ct_h323: Out Of Bound Read in Netfilter Conntracknet/netfilter/nf_conntrack_h323_asn1.c+1 -00 replies
14/23netfilter: ipvs: Use %pS printk format for direct addressesnet/netfilter/ipvs/ip_vs_conn.c net/netfilter/ipvs/ip_vs_ctl.c+3 -30 replies
15/23netfilter: ipvs: Fix inappropriate output of procfsnet/netfilter/ipvs/ip_vs_ctl.c+4 -00 replies
16/23netfilter: ebtables: clean up initialization of bufnet/bridge/netfilter/ebtables.c+1 -20 replies
17/23netfilter: xt_connlimit: remove mask argumentnet/netfilter/xt_connlimit.c+20 -320 replies
18/23netfilter: nft_hash: fix nft_hash_deactivatenet/netfilter/nft_set_hash.c+1 -10 replies
19/23netfilter: conntrack: don't cache nlattr_tuple_size result in nla_sizeinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_proto_icmp.c net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +4 more+37 -150 replies
20/23netfilter: conntrack: move nf_ct_netns_{get,put}() to corenet/netfilter/nf_conntrack_proto.c net/netfilter/nft_ct.c+38 -380 replies
21/23netfilter: conntrack: use power efficient workqueuenet/netfilter/nf_conntrack_core.c+2 -20 replies
22/23netfilter: nf_tables: performance set policy skips size description in selectionnet/netfilter/nf_tables_api.c+3 -80 replies
23/23netfilter: nf_tables: get set elements via netlinkinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_set_bitmap.c +2 more+264 -550 replies

Reviews trailers per patch

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

PatchEric DumazetFlorian WestphalSimon HormanJulian Anastasov
1/23
2/23
3/23
4/23
5/23
6/23
7/23
8/23R-b
9/23
10/23
11/23
12/23
13/23A-b
14/23A-b
15/23A-b
16/23
17/23
18/23
19/23
20/23A-b
21/23
22/23
23/23

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/23] Netfilter/IPVS updates for net-next

Hi David,

The following patchset contains Netfilter/IPVS updates for your net-next tree, they are:

1) Speed up table replacement on busy systems with large tables (and many cores) in x_tables. Now xt_replace_table() synchronizes by itself by waiting until all cpus had an even seqcount and we use no use seqlock when fetching old counters, from Florian Westphal.

2) Add nf_l4proto_log_invalid() and nf_ct_l4proto_log_invalid() to speed up packet processing in the fast path when logging is not enabled, from Florian Westphal.

3) Precompute masked address from configuration plane in xt_connlimit, from Florian.

4) Don't use explicit size for set selection if performance set policy is selected.

5) Allow to get elements from an existing set in nf_tables.

6) Fix incorrect check in nft_hash_deactivate(), from Florian.

7) Cache netlink attribute size result in l4proto->nla_size, from Florian.

8) Handle NFPROTO_INET in nf_ct_netns_get() from conntrack core.

9) Use power efficient workqueue in conntrack garbage collector, from Vincent Guittot.

10) Remove unnecessary parameter, in conntrack l4proto functions, also from Florian.

11) Constify struct nf_conntrack_l3proto definitions, from Florian.

12) Remove all typedefs in nf_conntrack_h323 via coccinelle semantic patch, from Harsha Sharma.

13) Don't store address in the rbtree nodes in xt_connlimit, they are never used, from Florian.

14) Fix out of bound access in the conntrack h323 helper, patch from Eric Sesterhenn.

15) Print symbols for the address returned with %pS in IPVS, from Helge Deller.

16) Proc output should only display its own netns in IPVS, from KUWAZAWA Takuya.

17) Small clean up in size_entry_mwt(), from Colin Ian King.

18) Use test_and_clear_bit from nf_nat_proto_clean() instead of separated non-atomic test and then clear bit, from Florian Westphal.

19) Consolidate prefix length maps in ipset, from Aaron Conole.

20) Fix sparse warnings in ipset, from Jozsef Kadlecsik.

21) Simplify list_set_memsize(), from simran singhal.

You can pull these changes from:

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

Thanks!

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

The following changes since commit 26873308b21654b6e0785b9f9e2c5414d37a4c4c:

Merge branch 'sctp-stream-schedulers' (2017-10-03 16:27:29 -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 ba0e4d9917b43dfa746cbbcb4477da59aae73bd6:

netfilter: nf_tables: get set elements via netlink (2017-11-07 01:00:31 +0100)

----------------------------------------------------------------
Aaron Conole (1):
netfilter: ipset: deduplicate prefixlen maps

Colin Ian King (1):
netfilter: ebtables: clean up initialization of buf

Eric Sesterhenn (1):
netfilter: nf_ct_h323: Out Of Bound Read in Netfilter Conntrack

Florian Westphal (11):
netfilter: nat: use test_and_clear_bit when deleting ct from bysource list
netfilter: conntrack: add and use nf_l4proto_log_invalid
netfilter: conntrack: add and use nf_ct_l4proto_log_invalid
netfilter: conntrack: remove pf argument from l4 packet functions
netfilter: x_tables: make xt_replace_table wait until old rules are not used anymore
netfilter: x_tables: don't use seqlock when fetching old counters
netfilter: conntrack: make l3proto trackers const
netfilter: xt_connlimit: don't store address in the conn nodes
netfilter: xt_connlimit: remove mask argument
netfilter: nft_hash: fix nft_hash_deactivate
netfilter: conntrack: don't cache nlattr_tuple_size result in nla_size

Harsha Sharma (1):
netfilter: nf_conntrack_h323: Remove typedef struct

Helge Deller (1):
netfilter: ipvs: Use %pS printk format for direct addresses

Jozsef Kadlecsik (1):
netfilter: ipset: Fix sparse warnings

KUWAZAWA Takuya (1):
netfilter: ipvs: Fix inappropriate output of procfs

Pablo Neira Ayuso (3):
netfilter: conntrack: move nf_ct_netns_{get,put}() to core
netfilter: nf_tables: performance set policy skips size description in selection
netfilter: nf_tables: get set elements via netlink

Vincent Guittot (1):
netfilter: conntrack: use power efficient workqueue

simran singhal (1):
netfilter: ipset: Compress return logic

 include/net/netfilter/ipv4/nf_conntrack_ipv4.h |   2 +-
 include/net/netfilter/ipv6/nf_conntrack_ipv6.h |   2 +-
 include/net/netfilter/nf_conntrack_l4proto.h   |  25 +-
 include/net/netfilter/nf_tables.h              |   5 +
 net/bridge/netfilter/ebtables.c                |   3 +-
 net/ipv4/netfilter/arp_tables.c                |  22 +-
 net/ipv4/netfilter/ip_tables.c                 |  23 +-
 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c |   2 +-
 net/ipv4/netfilter/nf_conntrack_proto_icmp.c   |  28 +-
 net/ipv6/netfilter/ip6_tables.c                |  22 +-
 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c |   2 +-
 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c |  24 +-
 net/netfilter/ipset/ip_set_hash_ipportnet.c    |   2 +-
 net/netfilter/ipset/ip_set_list_set.c          |   5 +-
 net/netfilter/ipset/pfxlen.c                   | 395 +++++++++----------------
 net/netfilter/ipvs/ip_vs_conn.c                |   2 +-
 net/netfilter/ipvs/ip_vs_ctl.c                 |   8 +-
 net/netfilter/nf_conntrack_core.c              |  15 +-
 net/netfilter/nf_conntrack_h323_asn1.c         |  81 ++---
 net/netfilter/nf_conntrack_netlink.c           |  10 +-
 net/netfilter/nf_conntrack_proto.c             |  86 +++++-
 net/netfilter/nf_conntrack_proto_dccp.c        |  21 +-
 net/netfilter/nf_conntrack_proto_generic.c     |   1 -
 net/netfilter/nf_conntrack_proto_gre.c         |   1 -
 net/netfilter/nf_conntrack_proto_sctp.c        |   4 +-
 net/netfilter/nf_conntrack_proto_tcp.c         |  62 ++--
 net/netfilter/nf_conntrack_proto_udp.c         |  41 ++-
 net/netfilter/nf_nat_core.c                    |   9 +-
 net/netfilter/nf_tables_api.c                  | 195 ++++++++----
 net/netfilter/nft_ct.c                         |  39 +--
 net/netfilter/nft_set_bitmap.c                 |  18 ++
 net/netfilter/nft_set_hash.c                   |  41 ++-
 net/netfilter/nft_set_rbtree.c                 |  73 +++++
 net/netfilter/x_tables.c                       |  21 +-
 net/netfilter/xt_connlimit.c                   |  55 ++--
 35 files changed, 767 insertions(+), 578 deletions(-)