[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6fb11f9c-1cd3-4a07-a687-96f0c5f146e5@amd.com>
Date: Wed, 19 Jun 2024 17:11:08 -0700
From: "Nelson, Shannon" <shannon.nelson@....com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, brett.creeley@....com, drivers@...sando.io
Subject: Re: [PATCH net] ionic: use dev_consume_skb_any outside of napi
On 6/19/2024 4:44 PM, Jakub Kicinski wrote:
> On Wed, 19 Jun 2024 14:20:22 -0700 Shannon Nelson wrote:
>> I found that ionic_tx_clean() calls napi_consume_skb() which calls
>> napi_skb_cache_put(), but before that last call is the note
>> /* Zero budget indicate non-NAPI context called us, like netpoll */
>> and
>> DEBUG_NET_WARN_ON_ONCE(!in_softirq());
>>
>> Those are pretty big hints that we're doing it wrong. So, let's pass a 0
>> when we know we're not in a napi context.
>
> Just pass the NAPI budget in, and if not in NAPI pass 0.
> A bit more plumbing thru, but a lot less thinking required during
> review..
> --
> pw-bot: cr
I had a plumb-it-through solution at one point, but this is so much
cleaner with a simple one line fix, so much less to go wrong...
Thanks, I'll look at it again tomorrow.
sln
Powered by blists - more mailing lists