[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220512072752.wb5rgtlkar4oyni6@gmail.com>
Date: Thu, 12 May 2022 08:27:52 +0100
From: Martin Habets <habetsm.xilinx@...il.com>
To: Edward Cree <ecree.xilinx@...il.com>
Cc: Jakub Kicinski <kuba@...nel.org>, davem@...emloft.net,
netdev@...r.kernel.org, pabeni@...hat.com, edumazet@...gle.com
Subject: Re: [PATCH net-next 3/6] eth: switch to netif_napi_add_weight()
On Wed, May 11, 2022 at 10:02:44PM +0100, Edward Cree wrote:
> On 11/05/2022 20:45, Jakub Kicinski wrote:
> > On Wed, 11 May 2022 18:57:53 +0100 Edward Cree wrote:
> >> This isn't really a custom weight; napi_weight is initialised to
> >> 64 and never changed, so probably we ought to be just using
> >> NAPI_POLL_WEIGHT here and end up on the non-_weight API.
> >> Same goes for Falcon.
> >
> > Ack, I wanted to be nice. I figured this must be a stub for a module
> > param in your our of tree driver.
>
> I mean, it *is*... but there's almost certainly a better way. Configuring
> NAPI weight for tuning purposes (as opposed to some kind of correctness
> limitation in a driver) probably ought to be left to generic infrastructure
> rather than vendor-specific modparams in driver code.
>
> > Should I send a patch to remove
> > the non-const static napi_weight globals and switch back to non-_weight?
>
> Yes please, unless Martin has any objections...?
Fine for me.
Martin
Powered by blists - more mailing lists