Skip to content

Netfilter updates for net-next

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netfilter: nf_tables: relax set/map validation checksnet/netfilter/nft_lookup.c+15 -80 replies
2/9netfilter: nf_tables: always increment set element countnet/netfilter/nf_tables_api.c+7 -40 replies
3/9netfilter: nft_exthdr: add boolean DCCP option matchinginclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_exthdr.c+108 -00 replies
4/9netfilter: Reorder fields in 'struct nf_conntrack_expect'include/net/netfilter/nf_conntrack_expect.h+9 -90 replies
5/9netfilter: nft_set_pipapo: Use struct_size()net/netfilter/nft_set_pipapo.c+2 -40 replies
6/9netfilter: conntrack: allow insertion clash of gre protocolnet/netfilter/nf_conntrack_proto_gre.c+1 -00 replies
7/9netfilter: flowtable: simplify route logicinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c net/netfilter/nft_flow_offload.c+13 -270 replies
8/9netfilter: flowtable: split IPv4 datapath in helper functionsnet/netfilter/nf_flow_table_ip.c+77 -420 replies
9/9netfilter: flowtable: split IPv6 datapath in helper functionsnet/netfilter/nf_flow_table_ip.c+71 -410 replies

Reviews trailers per patch

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

PatchSimon Horman
1/9
2/9
3/9
4/9R-b
5/9R-b
6/9
7/9
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 net-next 0/9] Netfilter updates for net-next

Hello,

this PR contains updates for your *net-next* tree.

nftables updates:

1. Allow key existence checks with maps.
At the moment the kernel requires userspace to pass a destination register for the associated value, make this optional so userspace can query if the key exists, just like with normal sets.

2. nftables maintains a counter per set that holds the number of elements. This counter gets decremented on element removal, but its only incremented if the set has a upper maximum value. Increment unconditionally, this will allow us to update the maximum value later on.

3. At DCCP option maching, from Jeremy Sowden.

4. use struct_size macro, from Christophe JAILLET.

Conntrack:

5. Squash holes in struct nf_conntrack_expect, also Christophe JAILLET.

6. Allow clash resolution for GRE Protocol to avoid a packet drop, from Faicker Mo.

Flowtable:

Simplify route logic and split large functions into smaller chunks, from Pablo Neira Ayuso.

The following changes since commit b50a8b0d57ab1ef11492171e98a030f48682eac3:

net: openvswitch: Use struct_size() (2023-05-17 21:25:46 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git tags/nf-next-2023-05-18

for you to fetch changes up to e05b5362166b18a224c30502e81416e4d622d3e4:

netfilter: flowtable: split IPv6 datapath in helper functions (2023-05-18 08:48:55 +0200)

----------------------------------------------------------------
Christophe JAILLET (2):
netfilter: Reorder fields in 'struct nf_conntrack_expect'
netfilter: nft_set_pipapo: Use struct_size()

Faicker Mo (1):
netfilter: conntrack: allow insertion clash of gre protocol

Florian Westphal (2):
netfilter: nf_tables: relax set/map validation checks
netfilter: nf_tables: always increment set element count

Jeremy Sowden (1):
netfilter: nft_exthdr: add boolean DCCP option matching

Pablo Neira Ayuso (3):
netfilter: flowtable: simplify route logic
netfilter: flowtable: split IPv4 datapath in helper functions
netfilter: flowtable: split IPv6 datapath in helper functions

 include/net/netfilter/nf_conntrack_expect.h |  18 +--
 include/net/netfilter/nf_flow_table.h       |   4 +-
 include/uapi/linux/netfilter/nf_tables.h    |   2 +
 net/netfilter/nf_conntrack_proto_gre.c      |   1 +
 net/netfilter/nf_flow_table_core.c          |  24 +--
 net/netfilter/nf_flow_table_ip.c            | 231 ++++++++++++++++++----------
 net/netfilter/nf_tables_api.c               |  11 +-
 net/netfilter/nft_exthdr.c                  | 106 +++++++++++++
 net/netfilter/nft_flow_offload.c            |  12 +-
 net/netfilter/nft_lookup.c                  |  23 ++-
 net/netfilter/nft_set_pipapo.c              |   6 +-
 11 files changed, 303 insertions(+), 135 deletions(-)