public inbox for netfilter-devel@vger.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org, carges@cloudflare.com
Subject: Re: [PATCH nf,v2] netfilter: nft_set_rbtree: allocate same array size on updates
Date: Sat, 7 Mar 2026 14:06:23 +0100	[thread overview]
Message-ID: <aawiz8SnS4HwV97z@strlen.de> (raw)
In-Reply-To: <aawhRH5SLVzNTots@chamomile>

Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> There is also set->ndeact that provides a hint on deactivated
> elements.

Oh, right, I fogot about that.

So we even have an estimate of how many elements will disappear.
> 
> So yes, there are smarter things that can be done here, but as for
> this patch, my initial approach in this fix series was intentionally
> simple.

Sure, its better to use a simple patch for nf, rest can be expiremented
with in nf-next, I did not want to hold up this patch and I intend to
pick it up for nf.

  reply	other threads:[~2026-03-07 13:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-07  0:11 [PATCH nf,v2] netfilter: nft_set_rbtree: allocate same array size on updates Pablo Neira Ayuso
2026-03-07  9:07 ` Florian Westphal
2026-03-07 12:59   ` Pablo Neira Ayuso
2026-03-07 13:06     ` Florian Westphal [this message]
2026-03-08 10:47       ` Pablo Neira Ayuso
2026-03-11 16:29 ` Chris Arges
2026-03-11 16:43   ` Pablo Neira Ayuso
2026-03-11 18:45     ` Chris Arges
  -- strict thread matches above, loose matches on Subject: below --
2026-03-08 11:23 Pablo Neira Ayuso
2026-03-08 11:25 ` Pablo Neira Ayuso

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=aawiz8SnS4HwV97z@strlen.de \
    --to=fw@strlen.de \
    --cc=carges@cloudflare.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox