netfilter: nft_set_pipapo: speed up bulk element insertions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 2 repliesIn review
- v14 patches 6 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | netfilter: nft_set_pipapo: constify lookup fn args where possiblenet/ net/ net/ | +48 | 0 replies | |
| 2/4 | netfilter: nft_set_pipapo: do not rely on ZERO_SIZE_PTRnet/ | +14 | 1 reply | |
| 3/4 | netfilter: nft_set_pipapo: shrink data structuresnet/ net/ | +51 | 0 replies | |
| 4/4 | netfilter: nft_set_pipapo: speed up bulk element insertionsnet/ net/ | +69 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stefano Brivio |
|---|---|
| Series | R-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 nf-next 0/4] netfilter: nft_set_pipapo: speed up bulk element insertions
v2: addressed comments from Stefano, see patches for details.
Bulk insertions into pipapo set type take a very long time, each new element allocates space for elem+1 elements, then copies all existing elements and appends the new element.
Alloc extra slack space to reduce the realloc overhead to speed this up.
While at it, shrink a few data structures, in may cases a much smaller type can be used.
Florian Westphal (4):
netfilter: nft_set_pipapo: constify lookup fn args where possible
netfilter: nft_set_pipapo: do not rely on ZERO_SIZE_PTR
netfilter: nft_set_pipapo: shrink data structures
netfilter: nft_set_pipapo: speed up bulk element insertions
net/netfilter/nft_set_pipapo.c | 178 ++++++++++++++++++++-------- net/netfilter/nft_set_pipapo.h | 37 +++--- net/netfilter/nft_set_pipapo_avx2.c | 59 +++++---- 3 files changed, 179 insertions(+), 95 deletions(-)
Signature · 1 line
2.43.0