[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aDRzMLL1vMXOIgHf@strlen.de>
Date: Mon, 26 May 2025 15:57:04 +0200
From: Florian Westphal <fw@...len.de>
To: Steffen Klassert <steffen.klassert@...unet.com>
Cc: Sabrina Dubroca <sd@...asysnail.net>, netdev@...r.kernel.org,
Antony Antony <antony.antony@...unet.com>,
Tobias Brunner <tobias@...ongswan.org>
Subject: Re: [PATCH ipsec 2/2] xfrm: state: use a consistent pcpu_id in
xfrm_state_find
Steffen Klassert <steffen.klassert@...unet.com> wrote:
> > - pcpu_id = get_cpu();
> > - put_cpu();
> > + pcpu_id = raw_smp_processor_id();
>
> This codepath can be taken from the forwarding path with preemtion
> disabled. raw_smp_processor_id will trigger a warning in that case,
Are you sure? smp_processor_id() emits a warning when called from
preemptible context, raw_smp_processor_id() should not do that.
We use raw_smp_processor_id from various netfilter modules as well
and I never saw preemption warnings.
Powered by blists - more mailing lists