Re: [PATCH net v2] net: Handle napi_schedule() calls from non-interrupt

From: Frederic Weisbecker
Date: Wed Feb 26 2025 - 08:38:17 EST


Le Wed, Feb 26, 2025 at 02:34:39PM +0100, Eric Dumazet a écrit :
> On Wed, Feb 26, 2025 at 2:21 PM Frederic Weisbecker <frederic@xxxxxxxxxx> wrote:
> >
>
> > That looks good and looks like what I did initially:
> >
> > https://lore.kernel.org/lkml/20250212174329.53793-2-frederic@xxxxxxxxxx/
> >
> > Do you prefer me doing it over DEBUG_NET_WARN_ON_ONCE() or with lockdep
> > like in the link?
>
> To be clear, I have not tried this thing yet.
>
> Perhaps let your patch as is (for stable backports), and put the debug
> stuff only after some tests, in net-next.

Ok.

>
> It is very possible that napi_schedule() in the problematic cases were
> not on a fast path anyway.

That was my assumption but I must confess I don't know well this realm.

>
> Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks!