[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAywjhRMSsMhKzQQsi++upcoOvc8CQ=Q6=J35vnxywhhLrk9AA@mail.gmail.com>
Date: Fri, 25 Apr 2025 20:54:06 -0700
From: Samiullah Khawaja <skhawaja@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "David S . Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, almasrymina@...gle.com, willemb@...gle.com,
jdamato@...tly.com, mkarsten@...terloo.ca, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v5 2/4] net: define an enum for the napi threaded state
On Fri, Apr 25, 2025 at 6:36 PM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Thu, 24 Apr 2025 20:02:20 +0000 Samiullah Khawaja wrote:
> > - dev_set_threaded(ndev, true);
> > + dev_set_threaded(ndev, NETDEV_NAPI_THREADED_ENABLE);
>
> The drivers having to specify the type of threading is too much.
> The drivers are just indicating to the core that they are too
> IRQ-constrained to reasonably handle load..
>
> Please add a wrapper, something like dev_set_threaded_hint(netdev).
> All the drivers pass true now, the second argument is already
> pointless. For extra points you can export just the
> dev_set_threaded_hint and make dev_set_threaded() be a core-only function.
Agree. Will do this
Powered by blists - more mailing lists