[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZuMs_BXeLYX0_RiZ@LQ3V64L9R2.homenet.telecomitalia.it>
Date: Thu, 12 Sep 2024 20:03:40 +0200
From: Joe Damato <jdamato@...tly.com>
To: Brett Creeley <brett.creeley@....com>
Cc: alexanderduyck@...com, kuba@...nel.org, kernel-team@...a.com,
davem@...emloft.net, pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH net] fbnic: Set napi irq value after calling
netif_napi_add
On Thu, Sep 12, 2024 at 10:49:22AM -0700, Brett Creeley wrote:
> The driver calls netif_napi_set_irq() and then calls netif_napi_add(),
> which calls netif_napi_add_weight(). At the end of
> netif_napi_add_weight() is a call to netif_napi_set_irq(napi, -1), which
> clears the previously set napi->irq value. Fix this by calling
> netif_napi_set_irq() after calling netif_napi_add().
>
> This was found when reviewing another patch and I have no way to test
> this, but the fix seemed relatively straight forward.
>
> Cc: stable@...r.kernel.org
> Fixes: bc6107771bb4 ("eth: fbnic: Allocate a netdevice and napi vectors with queues")
> Signed-off-by: Brett Creeley <brett.creeley@....com>
I agree with your analysis, but I'm not sure if this needs to be
backported to other kernels because:
- It is not a device that is easily available (currently),
- The bug is relatively minor
I'm not a maintainer so I'll let those folks decide if this should
be a net-next thing to reduce load on the stable folks.
In any case:
Reviewed-by: Joe Damato <jdamato@...tly.com>
Powered by blists - more mailing lists