All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next v8 0/6] ipset: replace internal hash table with rhashtable
@ 2026-11-11 10:11 Florian Westphal
  2026-11-11 10:11 ` [PATCH nf-next v8 1/6] rhashtable: Add rhashtable_flush_and_free helper Florian Westphal
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Florian Westphal @ 2026-11-11 10:11 UTC (permalink / raw)
  To: netfilter-devel

v8:
- Mostly changes in patches 3 and 5.  Patch 5 now checks if
  unlink from rhashtable worked before freeing the group struct
  to avoud gc/flush entanglements.
- the initial rhashtable conversion now removes MULTI support,
  re-added in extra patch that is new in this series.

See patches for details for changes since v7.

I did extensive LLM reviews of this thing, but by now noise outweights the
signal by far, with successive rounds often giving contradicting hints.
This passes ipset tests, like previous versions of this patchset.

1) Add rhashtable_flush_and_free, From Herbert Xu.
The initial user of this function is added in patch 3.

2) Add rhashtable boilerplate stubs to ipset. Implement its initialization
and destruction logic.

3) Replace ipset internal hash tables with rhashtables.
This drops functionality, in particular, MULTI sets will not work
correctly.  This is restored in patch 5.

4) Report dynamic CIDR storage memory size to userspace.

5) Reimplement hash:net,iface (IP_SET_HASH_WITH_MULTI) using a
group-of-elements structure with explicit exact-over-wildcard match
priority. Update gc, list, flush, and destroy paths for the extra group
level.

6) Restore SET_WITH_FORCEADD eviction support to netfilter ipset. Add
mtype_remove_random() helper to facilitate element eviction during
additions.

Florian Westphal (5):
  netfilter: ipset: add rhashtable boilerplate stubs
  netfilter: ipset: replace internal hash table with rhashtable
  netfilter: ipset: also report mem size for cidr storage to userspace
  netfilter: ipset: re-add IP_SET_HASH_WITH_MULTI support
  netfilter: ipset: re-add forceadd support

Herbert Xu (1):
  rhashtable: Add rhashtable_flush_and_free helper

 include/linux/rhashtable.h                   |   40 +-
 lib/rhashtable.c                             |  186 +-
 net/netfilter/ipset/ip_set_hash_gen.h        | 2172 ++++++++++--------
 net/netfilter/ipset/ip_set_hash_ip.c         |    6 +-
 net/netfilter/ipset/ip_set_hash_ipmac.c      |    6 +-
 net/netfilter/ipset/ip_set_hash_ipmark.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_ipport.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_ipportip.c   |    6 +-
 net/netfilter/ipset/ip_set_hash_ipportnet.c  |    6 +-
 net/netfilter/ipset/ip_set_hash_mac.c        |    3 +-
 net/netfilter/ipset/ip_set_hash_net.c        |    6 +-
 net/netfilter/ipset/ip_set_hash_netiface.c   |   74 +-
 net/netfilter/ipset/ip_set_hash_netnet.c     |    6 +-
 net/netfilter/ipset/ip_set_hash_netport.c    |    6 +-
 net/netfilter/ipset/ip_set_hash_netportnet.c |    6 +-
 15 files changed, 1462 insertions(+), 1073 deletions(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-11 10:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 10:11 [PATCH nf-next v8 0/6] ipset: replace internal hash table with rhashtable Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 1/6] rhashtable: Add rhashtable_flush_and_free helper Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 2/6] netfilter: ipset: add rhashtable boilerplate stubs Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 3/6] netfilter: ipset: replace internal hash table with rhashtable Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 4/6] netfilter: ipset: also report mem size for cidr storage to userspace Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 5/6] netfilter: ipset: re-add IP_SET_HASH_WITH_MULTI support Florian Westphal
2026-11-11 10:11 ` [PATCH nf-next v8 6/6] netfilter: ipset: re-add forceadd support Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.