Netdev List
 help / color / mirror / Atom feed
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Ralf Lici <ralf@mandelbit.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
	netdev@vger.kernel.org, ipsec@lists.linux.dev,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH ipsec v2 1/2] xfrm: advance the route generation when policies are removed
Date: Tue, 1 Dec 2026 17:59:11 +0100	[thread overview]
Message-ID: <8fbd5150-50cb-4092-b28a-3647dba61d11@6wind.com> (raw)
In-Reply-To: <20261130165103.526794-1-ralf@mandelbit.com>

Le 30/11/2026 à 17:51, Ralf Lici a écrit :[snip]

> - xfrm_policy_delete also runs from the policy timer, in softirq
>   context, and for IPv6 the bump is fib6_flush_trees, a walk of every
>   route. Policies that expire together would walk the FIB once each in a
>   single softirq, and both policies and routes only need CAP_NET_ADMIN
>   in the netns. [2] turns the IPv6 bump into a counter increment, but
>   that is net-next.
> 
> For the last one I see three options for net:
> 
> a) defer the bump in xfrm_policy_delete to a per-netns work item, like
>    policy_hash_work, so that expiries coalesce into one walk in process
>    context;
> b) keep the bump synchronous, as in this version; or
> c) leave expiry out of this fix.
> 
> The first option seems the right fix to me but let me know if you prefer
> a more "minimalistic" approach for a bugfix commit.
Ok, let's try this option.

  reply	other threads:[~2026-12-01 16:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 16:48 [PATCH ipsec v2 0/2] xfrm: advance the route generation when policies are removed Ralf Lici
2026-11-27 16:48 ` [PATCH ipsec v2 1/2] " Ralf Lici
2026-11-30 10:08   ` Nicolas Dichtel
2026-11-30 16:51     ` Ralf Lici
2026-12-01 16:59       ` Nicolas Dichtel [this message]
2026-11-27 16:48 ` [PATCH ipsec v2 2/2] selftests: net: add a test for xfrm policy removal Ralf Lici
2026-11-30 10:14   ` Nicolas Dichtel
2026-11-30 16:53     ` Ralf Lici

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=8fbd5150-50cb-4092-b28a-3647dba61d11@6wind.com \
    --to=nicolas.dichtel@6wind.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=horms@kernel.org \
    --cc=ipsec@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ralf@mandelbit.com \
    --cc=shuah@kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=willemb@google.com \
    /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