From: Jozsef Kadlecsik <kadlec@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf v6 0/6] ipset: replace internal hash table with rhashtable
Date: Tue, 27 Oct 2026 18:13:43 +0100 (CET) [thread overview]
Message-ID: <a8a94db7-7b61-4619-e7d9-920e775814b7@netfilter.org> (raw)
In-Reply-To: <20261027133331.25979-1-fw@strlen.de>
Hi Florian,
I'm absolutely sure that your efforts to replace the custom hash
implementation in ipset with rhastable is the proper way to solve the many
problems lurking in the current codebase. Which are sometimes nearly
impossible to solve anyway, without a complete redesign. So looking at the
sashiko comments, I think the end of the long journey is not far away!
Best regards,
Jozsef
On Tue, 27 Oct 2026, Florian Westphal wrote:
> v6: address more AI complaints on v5, affects patches 3, 4 and 5.
> Rest unchanged.
>
> v5: add Herbert Xu's new rhashtable_flush_and_free() to rhashtable, this
> replaces my own version from v4. I also dropped a few follwup patches
> with further changes/cleanups, not strictly required for initial
> conversion.
>
> 1) Add rhashtable_flush_and_free, From Herbert Xu.
> The initial user of this function is added in patch 4.
>
> 2) Add rhashtable boilerplate stubs to ipset. Implement its initialization
> and destruction logic.
>
> 3) Add rhltable boilerplate stubs to netfilter ipset. Prepare for handling
> distinct elements sharing the same hash key.
>
> 4) Replace ipset internal hash tables with rhashtables.
> Retain legacy configuration options.
>
> 5) Restore SET_WITH_FORCEADD eviction support to netfilter ipset. Add
> mtype_remove_random() helper to facilitate element eviction during
> additions.
>
> 6) Report dynamic CIDR storage memory size to userspace.
>
> 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
>
> Herbert Xu (1):
> rhashtable: Add rhashtable_flush_and_free helper
>
> include/linux/rhashtable.h | 40 +-
> lib/rhashtable.c | 187 ++-
> net/netfilter/ipset/ip_set_hash_gen.h | 1638 ++++++++------------
> net/netfilter/ipset/ip_set_hash_netiface.c | 24 +-
> 4 files changed, 860 insertions(+), 1029 deletions(-)
>
> --
> 2.55.0
>
>
--
E-mail : kadlec@netfilter.org, kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.hu
Address: Wigner Research Centre for Physics
H-1525 Budapest 114, POB. 49, Hungary
next prev parent reply other threads:[~2026-10-27 17:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 13:33 [PATCH nf v6 0/6] ipset: replace internal hash table with rhashtable Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 1/6] rhashtable: Add rhashtable_flush_and_free helper Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 2/6] netfilter: ipset: add rhashtable boilerplate stubs Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 3/6] netfilter: ipset: add rhltable " Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 4/6] netfilter: ipset: replace internal hash table with rhashtable Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 5/6] netfilter: ipset: re-add forceadd support Florian Westphal
2026-10-27 13:33 ` [PATCH nf v6 6/6] netfilter: ipset: also report mem size for cidr storage to userspace Florian Westphal
2026-10-27 17:13 ` Jozsef Kadlecsik [this message]
2026-10-27 18:04 ` [PATCH nf v6 0/6] ipset: replace internal hash table with rhashtable Florian Westphal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a8a94db7-7b61-4619-e7d9-920e775814b7@netfilter.org \
--to=kadlec@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.