All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 nf 0/5] netfilter: ipset: rhashtable conversion
@ 2026-08-25 13:28 Florian Westphal
  2026-08-25 13:28 ` [PATCH v2 nf 1/5] netfilter: ipset: add rhashtable boilerplate stubs Florian Westphal
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Florian Westphal @ 2026-08-25 13:28 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Jozsef Kadlecsik, Florian Westphal

Identical resend except for a one-line kfree_rcu change in patch 3.

This series contains the initial rhashtable conversion. I elided
several followup commits that remove dead code, e.g. the region locking
or the resize callback, this will be sent later as a followup.

1) Add rhashtable boilerplate stubs to netfilter ipset. Implement rhashtable
initialization and destruction.

2) Add rhltable boilerplate stubs to Netfilter IPSet. Prepare switching from
rhashtable for sets sharing hash keys.

3) Replace ipset internal hash tables with rhashtables. Introduce
RHL_MAX_CHAINLEN to explicitly bound chain length. Keep automatic
rhashtable shrinking disabled to prevent errors during set dumping.

4) Restore SET_WITH_FORCEADD eviction logic in ipset. Add
mtype_remove_random() helper to identify key slots for eviction.

5) Report CIDR storage memory size to userspace, including dynamic allocation.

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

 net/netfilter/ipset/ip_set_hash_gen.h      | 1618 ++++++++------------
 net/netfilter/ipset/ip_set_hash_netiface.c |   24 +-
 2 files changed, 672 insertions(+), 970 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-08-25 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25 13:28 [PATCH v2 nf 0/5] netfilter: ipset: rhashtable conversion Florian Westphal
2026-08-25 13:28 ` [PATCH v2 nf 1/5] netfilter: ipset: add rhashtable boilerplate stubs Florian Westphal
2026-08-25 13:28 ` [PATCH v2 nf 2/5] netfilter: ipset: add rhltable " Florian Westphal
2026-08-25 13:28 ` [PATCH v2 nf 3/5] netfilter: ipset: replace internal hash table with rhashtable Florian Westphal
2026-08-25 13:28 ` [PATCH v2 nf 4/5] netfilter: ipset: re-add forceadd support Florian Westphal
2026-08-25 13:28 ` [PATCH v2 nf 5/5] netfilter: ipset: also report mem size for cidr storage to userspace Florian Westphal
2026-08-25 14:28 ` [PATCH v2 nf 0/5] netfilter: ipset: rhashtable conversion 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.