Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version NAK

Status from this message: NACKed-by: Alexei Starovoitov <[email protected]>

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 7 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/29netfilter: flowtable: Use nf_flow_offload_tuple for stats as wellnet/netfilter/nf_flow_table_offload.c+9 -170 replies
2/29netfilter: xtables: Add snapshot of hardidletimer targetinclude/uapi/linux/netfilter/xt_IDLETIMER.h net/netfilter/xt_IDLETIMER.c+246 -130 replies
3/29netfilter: nft_tunnel: add support for geneve optsinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_tunnel.c+108 -120 replies
4/29netfilter: nf_tables: make sets built-ininclude/net/netfilter/nf_tables.h net/netfilter/Kconfig net/netfilter/Makefile +2 more+15 -800 replies
5/29netfilter: nf_tables: make all set structs constinclude/net/netfilter/nf_tables.h include/net/netfilter/nf_tables_core.h net/netfilter/nf_tables_api.c +4 more+14 -340 replies
6/29netfilter: cleanup unused macronet/netfilter/nf_conntrack_core.c net/netfilter/xt_SECMARK.c+0 -30 replies
7/29netfilter: nft_set_pipapo: make the symbol 'nft_pipapo_get' staticnet/netfilter/nft_set_pipapo.c+2 -20 replies
8/29netfilter: Replace zero-length array with flexible-array memberinclude/linux/netfilter/ipset/ip_set.h include/linux/netfilter/x_tables.h include/linux/netfilter_arp/arp_tables.h +19 more+32 -320 replies
9/29netfilter: bitwise: use more descriptive variable-names.net/netfilter/nft_bitwise.c+7 -70 replies
10/29netfilter: xt_IDLETIMER: clean up some indentingnet/netfilter/xt_IDLETIMER.c+3 -40 replies
11/29netfilter: flowtable: add nf_flow_table_block_offload_init()net/netfilter/nf_flow_table_offload.c+17 -80 replies
12/29netfilter: flowtable: add indr block setup supportnet/netfilter/nf_flow_table_offload.c+90 -40 replies
13/29netfilter: flowtable: add tunnel match offload supportinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_offload.c+65 -23 replies
14/29netfilter: flowtable: add tunnel encap/decap action offload supportnet/netfilter/nf_flow_table_offload.c+45 -00 replies
15/29nft_set_pipapo: Generalise group size for bucketsnet/netfilter/nft_set_pipapo.c+112 -960 replies
16/29nft_set_pipapo: Add support for 8-bit lookup groups and dynamic switchnet/netfilter/nft_set_pipapo.c+233 -80 replies
17/29nft_set_pipapo: Prepare for vectorised implementation: alignmentnet/netfilter/nft_set_pipapo.c+110 -250 replies
18/29nft_set_pipapo: Prepare for vectorised implementation: helpersnet/netfilter/nft_set_pipapo.c net/netfilter/nft_set_pipapo.h+285 -2610 replies
19/29nft_set_pipapo: Introduce AVX2-based lookup implementationinclude/net/netfilter/nf_tables_core.h net/netfilter/Makefile net/netfilter/nf_tables_api.c +3 more+1270 -02 replies
20/29nft_set_pipapo: Prepare for single ranged field usagenet/netfilter/nft_set_pipapo.c net/netfilter/nft_set_pipapo.h net/netfilter/nft_set_pipapo_avx2.c+17 -80 replies
21/29netfilter: nf_tables: add nft_set_elem_expr_alloc()include/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_dynset.c+36 -130 replies
22/29netfilter: nf_tables: statify nft_expr_init()include/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+2 -40 replies
23/29netfilter: nf_tables: add elements with stateful expressionsnet/netfilter/nf_tables_api.c+20 -10 replies
24/29netfilter: nf_tables: add nft_set_elem_update_expr() helper functioninclude/net/netfilter/nf_tables.h net/netfilter/nft_dynset.c+13 -70 replies
25/29netfilter: nft_lookup: update element stateful expressionnet/netfilter/nft_lookup.c+1 -00 replies
26/29netfilter: conntrack: re-visit sysctls in unprivileged namespacesnet/netfilter/nf_conntrack_standalone.c+8 -110 replies
27/29netfilter: Rename ingress hook include fileinclude/linux/netfilter_netdev.h net/core/dev.c+1 -10 replies
28/29netfilter: Generalize ingress hookinclude/linux/netfilter_netdev.h net/core/dev.c+32 -150 replies
29/29netfilter: Introduce egress hookinclude/linux/netdevice.h include/linux/netfilter_netdev.h include/uapi/linux/netfilter.h +4 more+83 -80 replies

Reviews trailers per patch

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

PatchStefano BrivioAlexei Starovoitov
SeriesNACKed-by
1/29
2/29
3/29
4/29
5/29
6/29
7/29A-b
8/29
9/29
10/29
11/29
12/29
13/29
14/29
15/29
16/29
17/29
18/29
19/29
20/29
21/29
22/29
23/29
24/29
25/29
26/29
27/29
28/29
29/29

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

Hi,

The following patchset contains Netfilter updates for net-next:

1) Use nf_flow_offload_tuple() to fetch flow stats, from Paul Blakey.

2) Add new xt_IDLETIMER hard mode, from Manoj Basapathi. Follow up patch to clean up this new mode, from Dan Carpenter.

3) Add support for geneve tunnel options, from Xin Long.

4) Make sets built-in and remove modular infrastructure for sets, from Florian Westphal.

5) Remove unused TEMPLATE_NULLS_VAL, from Li RongQing.

6) Statify nft_pipapo_get, from Chen Wandun.

7) Use C99 flexible-array member, from Gustavo A. R. Silva.

8) More descriptive variable names for bitwise, from Jeremy Sowden.

9) Four patches to add tunnel device hardware offload to the flowtable infrastructure, from wenxu.

10) pipapo set supports for 8-bit grouping, from Stefano Brivio.

11) pipapo can switch between nibble and byte grouping, also from Stefano.

12) Add AVX2 vectorized version of pipapo, from Stefano Brivio.

13) Update pipapo to be use it for single ranges, from Stefano.

14) Add stateful expression support to elements via control plane, eg. counter per element.

15) Re-visit sysctls in unprivileged namespaces, from Florian Westphal.

15) Add new egress hook, from Lukas Wunner.

You can pull these changes from:

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

Thank you.

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

The following changes since commit 5d0ab06b63fc9c727a7bb72c81321c0114be540b:

cdc_ncm: Fix the build warning (2020-03-15 00:41: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 8537f78647c072bdb1a5dbe32e1c7e5b13ff1258:

netfilter: Introduce egress hook (2020-03-18 01:20:15 +0100)

----------------------------------------------------------------
Chen Wandun (1):
netfilter: nft_set_pipapo: make the symbol 'nft_pipapo_get' static

Dan Carpenter (1):
netfilter: xt_IDLETIMER: clean up some indenting

Florian Westphal (3):
netfilter: nf_tables: make sets built-in
netfilter: nf_tables: make all set structs const
netfilter: conntrack: re-visit sysctls in unprivileged namespaces

Gustavo A. R. Silva (1):
netfilter: Replace zero-length array with flexible-array member

Jeremy Sowden (1):
netfilter: bitwise: use more descriptive variable-names.

Li RongQing (1):
netfilter: cleanup unused macro

Lukas Wunner (3):
netfilter: Rename ingress hook include file
netfilter: Generalize ingress hook
netfilter: Introduce egress hook

Manoj Basapathi (1):
netfilter: xtables: Add snapshot of hardidletimer target

Pablo Neira Ayuso (5):
netfilter: nf_tables: add nft_set_elem_expr_alloc()
netfilter: nf_tables: statify nft_expr_init()
netfilter: nf_tables: add elements with stateful expressions
netfilter: nf_tables: add nft_set_elem_update_expr() helper function
netfilter: nft_lookup: update element stateful expression

Paul Blakey (1):
netfilter: flowtable: Use nf_flow_offload_tuple for stats as well

Stefano Brivio (6):
nft_set_pipapo: Generalise group size for buckets
nft_set_pipapo: Add support for 8-bit lookup groups and dynamic switch
nft_set_pipapo: Prepare for vectorised implementation: alignment
nft_set_pipapo: Prepare for vectorised implementation: helpers
nft_set_pipapo: Introduce AVX2-based lookup implementation
nft_set_pipapo: Prepare for single ranged field usage

Xin Long (1):
netfilter: nft_tunnel: add support for geneve opts

wenxu (4):
netfilter: flowtable: add nf_flow_table_block_offload_init()
netfilter: flowtable: add indr block setup support
netfilter: flowtable: add tunnel match offload support
netfilter: flowtable: add tunnel encap/decap action offload support

 include/linux/netdevice.h                       |    4 +
 include/linux/netfilter/ipset/ip_set.h          |    2 +-
 include/linux/netfilter/x_tables.h              |    8 +-
 include/linux/netfilter_arp/arp_tables.h        |    2 +-
 include/linux/netfilter_bridge/ebtables.h       |    2 +-
 include/linux/netfilter_ingress.h               |   58 --
 include/linux/netfilter_ipv4/ip_tables.h        |    2 +-
 include/linux/netfilter_ipv6/ip6_tables.h       |    2 +-
 include/linux/netfilter_netdev.h                |  102 ++
 include/net/netfilter/nf_conntrack_extend.h     |    2 +-
 include/net/netfilter/nf_conntrack_timeout.h    |    2 +-
 include/net/netfilter/nf_flow_table.h           |    6 +
 include/net/netfilter/nf_tables.h               |   34 +-
 include/net/netfilter/nf_tables_core.h          |   13 +-
 include/uapi/linux/netfilter.h                  |    1 +
 include/uapi/linux/netfilter/nf_tables.h        |   10 +
 include/uapi/linux/netfilter/xt_IDLETIMER.h     |   12 +-
 include/uapi/linux/netfilter_bridge/ebt_among.h |    2 +-
 net/bridge/netfilter/ebtables.c                 |    2 +-
 net/core/dev.c                                  |   27 +-
 net/ipv4/netfilter/arp_tables.c                 |    4 +-
 net/ipv4/netfilter/ip_tables.c                  |    4 +-
 net/ipv6/netfilter/ip6_tables.c                 |    4 +-
 net/netfilter/Kconfig                           |   16 +-
 net/netfilter/Makefile                          |   13 +-
 net/netfilter/core.c                            |   24 +-
 net/netfilter/ipset/ip_set_bitmap_ip.c          |    2 +-
 net/netfilter/ipset/ip_set_bitmap_ipmac.c       |    2 +-
 net/netfilter/ipset/ip_set_bitmap_port.c        |    2 +-
 net/netfilter/ipset/ip_set_hash_gen.h           |    4 +-
 net/netfilter/nf_conntrack_core.c               |    1 -
 net/netfilter/nf_conntrack_standalone.c         |   19 +-
 net/netfilter/nf_flow_table_offload.c           |  251 ++++-
 net/netfilter/nf_tables_api.c                   |  113 ++-
 net/netfilter/nf_tables_set_core.c              |   31 -
 net/netfilter/nfnetlink_acct.c                  |    2 +-
 net/netfilter/nft_bitwise.c                     |   14 +-
 net/netfilter/nft_chain_filter.c                |    4 +-
 net/netfilter/nft_dynset.c                      |   23 +-
 net/netfilter/nft_lookup.c                      |    1 +
 net/netfilter/nft_set_bitmap.c                  |    3 +-
 net/netfilter/nft_set_hash.c                    |    9 +-
 net/netfilter/nft_set_pipapo.c                  |  637 +++++++-----
 net/netfilter/nft_set_pipapo.h                  |  280 ++++++
 net/netfilter/nft_set_pipapo_avx2.c             | 1223 +++++++++++++++++++++++
 net/netfilter/nft_set_pipapo_avx2.h             |   14 +
 net/netfilter/nft_set_rbtree.c                  |    3 +-
 net/netfilter/nft_tunnel.c                      |  110 +-
 net/netfilter/xt_IDLETIMER.c                    |  248 ++++-
 net/netfilter/xt_SECMARK.c                      |    2 -
 net/netfilter/xt_hashlimit.c                    |    2 +-
 net/netfilter/xt_recent.c                       |    4 +-
 52 files changed, 2781 insertions(+), 581 deletions(-)
 delete mode 100644 include/linux/netfilter_ingress.h
 create mode 100644 include/linux/netfilter_netdev.h
 delete mode 100644 net/netfilter/nf_tables_set_core.c
 create mode 100644 net/netfilter/nft_set_pipapo.h
 create mode 100644 net/netfilter/nft_set_pipapo_avx2.c
 create mode 100644 net/netfilter/nft_set_pipapo_avx2.h