lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240305102535.Mw-yj_ra@linutronix.de>
Date: Tue, 5 Mar 2024 11:25:35 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Jesper Dangaard Brouer <hawk@...nel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Wander Lairson Costa <wander@...hat.com>,
	Yan Zhai <yan@...udflare.com>
Subject: Re: [PATCH v3 net-next 3/4] net: Use backlog-NAPI to clean up the
 defer_list.

On 2024-03-05 10:55:45 [+0100], Paolo Abeni wrote:
> On Wed, 2024-02-28 at 13:05 +0100, Sebastian Andrzej Siewior wrote:
> > @@ -4736,6 +4736,26 @@ static void napi_schedule_rps(struct softnet_data *sd)
> >  	__napi_schedule_irqoff(&mysd->backlog);
> >  }
> >  
> > +void kick_defer_list_purge(unsigned int cpu)
> > +{
> 
> Minor nit: I guess passing directly 'sd' as an argument here would be
> better, but that could be a follow-up.

I need the CPU number in the "non-backlog threaded" case for
smp_call_function_single_async(cpu, ). sd->cpu has the CPU stored but
only in the CONFIG_RPS case. In the theoretical case +SMP -SYSFS we
wouldn't have RPS but would need this CPU member.

> Cheers,
> 
> Paolo

Sebastian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ