Re: [PATCH v2 4/4] net: lantiq: Disable IRQs only if NAPI gets scheduled

2020-09-14 Thread Hauke Mehrtens
On 9/14/20 10:54 PM, Jakub Kicinski wrote: > On Sat, 12 Sep 2020 21:36:29 +0200 Hauke Mehrtens wrote: >> The napi_schedule() call will only schedule the NAPI if it is not >> already running. To make sure that we do not deactivate interrupts >> without scheduling NAPI only deactivate the interrupts

Re: [PATCH v2 4/4] net: lantiq: Disable IRQs only if NAPI gets scheduled

2020-09-14 Thread Jakub Kicinski
On Sat, 12 Sep 2020 21:36:29 +0200 Hauke Mehrtens wrote: > The napi_schedule() call will only schedule the NAPI if it is not > already running. To make sure that we do not deactivate interrupts > without scheduling NAPI only deactivate the interrupts in case NAPI also > gets scheduled. > > Signed-

[PATCH v2 4/4] net: lantiq: Disable IRQs only if NAPI gets scheduled

2020-09-12 Thread Hauke Mehrtens
The napi_schedule() call will only schedule the NAPI if it is not already running. To make sure that we do not deactivate interrupts without scheduling NAPI only deactivate the interrupts in case NAPI also gets scheduled. Signed-off-by: Hauke Mehrtens --- drivers/net/ethernet/lantiq_xrx200.c | 8