net: lantiq: Disable IRQs only if NAPI gets scheduled
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 12 Sep 2020 19:36:29 +0000 (21:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:05:26 +0000 (18:05 +0200)
commit318d2408a81de9d4558803ab4a4763644f186312
treec53df22b9ba7a0ae0f97f1f3779850818d6a1738
parentc36c06305afebe16ea012fbea1c9e17da58724d4
net: lantiq: Disable IRQs only if NAPI gets scheduled

[ Upstream commit 9423361da52356cb68642db5b2729b6b85aad330 ]

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 <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/lantiq_xrx200.c