Re: [PATCH net] net: stmmac: use __napi_schedule() for PREEMPT_RT

2021-01-13 Thread Jakub Kicinski
On Tue, 12 Jan 2021 15:01:22 +0100 Sebastien Laveze wrote: > From: Seb Laveze > > Use of __napi_schedule_irqoff() is not safe with PREEMPT_RT in which > hard interrupts are not disabled while running the threaded interrupt. > > Using __napi_schedule() works for both PREEMPT_RT and mainline Linux

[PATCH net] net: stmmac: use __napi_schedule() for PREEMPT_RT

2021-01-12 Thread Sebastien Laveze
From: Seb Laveze Use of __napi_schedule_irqoff() is not safe with PREEMPT_RT in which hard interrupts are not disabled while running the threaded interrupt. Using __napi_schedule() works for both PREEMPT_RT and mainline Linux, just at the cost of an additional check if interrupts are disabled fo