Re: [PATCH net] net: xilinx: axienet: Schedule NAPI in two steps

From: Sean Anderson
Date: Thu Sep 12 2024 - 10:23:28 EST


On 9/10/24 21:58, Jakub Kicinski wrote:
> On Mon, 9 Sep 2024 19:19:04 -0400 Sean Anderson wrote:
>> Additionally, since we are running
>> in an IRQ context we can use the irqoff variant as well.
>
> The _irqoff variant is a bit of a minefield. It causes issues if kernel
> is built with forced IRQ threading. With datacenter NICs forced
> threading is never used so we look the other way. Since this is a fix
> and driver is embedded I reckon we should stick to __napi_schedule().

Does it?

__napi_schedule_irqoff selects between __napi_schedule and
____napi_schedule based on whether PREEMPT_RT is enabled. Is there some
other way to force IRQ threading?

--Sean