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: <83a69666-31d2-43c3-8612-2884f4570ff7@gmail.com>
Date: Tue, 24 Oct 2023 16:29:46 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Amritha Nambiar <amritha.nambiar@...el.com>, netdev@...r.kernel.org,
 kuba@...nel.org, pabeni@...hat.com
Cc: sridhar.samudrala@...el.com
Subject: Re: [net-next PATCH v6 08/10] net: Add NAPI IRQ support

On 10/23/23 18:34, Amritha Nambiar wrote:
> Add support to associate the interrupt vector number for a
> NAPI instance.
> 
> Signed-off-by: Amritha Nambiar <amritha.nambiar@...el.com>
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@...el.com>
> ---
[snip]

>   
> +static inline void netif_napi_set_irq(struct napi_struct *napi, int irq)
> +{
> +	napi->irq = irq;
> +}
> +
>   /* Default NAPI poll() weight
>    * Device drivers are strongly advised to not use bigger value
>    */
> diff --git a/net/core/dev.c b/net/core/dev.c
> index d02c7a0ce4bc..adf20fa02b93 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -6507,6 +6507,7 @@ void netif_napi_add_weight(struct net_device *dev, struct napi_struct *napi,
>   	 */
>   	if (dev->threaded && napi_kthread_create(napi))
>   		dev->threaded = 0;
> +	napi->irq = -1;

Is there a reason you are not using netif_napi_set_irq() here?
-- 
Florian


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ