Skip to content

netfilter: nft_set updates

Florian Westphal netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5netfilter: nft_set_pipapo: remove unused argumentsnet/netfilter/nft_set_pipapo.c+5 -90 replies
2/5netfilter: nft_set: remove one argument from lookup and update functionsinclude/net/netfilter/nf_tables.h include/net/netfilter/nf_tables_core.h net/netfilter/nft_dynset.c +7 more+126 -1170 replies
3/5netfilter: nft_set: remove indirection from update API callinclude/net/netfilter/nf_tables.h include/net/netfilter/nf_tables_core.h net/netfilter/nft_dynset.c +2 more+8 -130 replies
4/5netfilter: nft_set_pipapo: merge pipapo_get/lookupnet/netfilter/nft_set_pipapo.c+58 -1300 replies
5/5netfilter: nft_set_pipapo: prefer kvmalloc for scratch mapsnet/netfilter/nft_set_pipapo.c+4 -50 replies

Reviews trailers per patch

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

PatchStefano Brivio
1/5R-b
2/5R-b
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH nf-next v2 0/5] netfilter: nft_set updates

v2: minor kdoc updates. I copied Stefanos RvB tags.

This series serves as preparation to make pipapos avx2 functions available from the control plane.

First patch removes a few unused arguments.
Second and third patch simplify some of the set api functions.

The fourth patch is the main change, it removes the control-plane only C implementation of the pipapo lookup algorithm.

The last patch allows the scratch maps to be backed by vmalloc.

Florian Westphal (5):
netfilter: nft_set_pipapo: remove unused arguments
netfilter: nft_set: remove one argument from lookup and update
functions
netfilter: nft_set: remove indirection from update API call
netfilter: nft_set_pipapo: merge pipapo_get/lookup
netfilter: nft_set_pipapo: prefer kvmalloc for scratch maps

 include/net/netfilter/nf_tables.h      |  14 +-
 include/net/netfilter/nf_tables_core.h |  50 +++---
 net/netfilter/nft_dynset.c             |  10 +-
 net/netfilter/nft_lookup.c             |  27 ++--
 net/netfilter/nft_objref.c             |   5 +-
 net/netfilter/nft_set_bitmap.c         |  11 +-
 net/netfilter/nft_set_hash.c           |  54 +++----
 net/netfilter/nft_set_pipapo.c         | 204 ++++++++-----------------
 net/netfilter/nft_set_pipapo_avx2.c    |  26 ++--
 net/netfilter/nft_set_rbtree.c         |  40 +++--
 10 files changed, 184 insertions(+), 257 deletions(-)
Signature · 1 line
2.49.0