net: lantiq: Disable IRQs only if NAPI gets scheduled
commit8b62798220804c303ef624d2c591888d17b18b4c
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 12 Sep 2020 19:36:29 +0000 (12 21:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:03:15 +0000 (26 18:03 +0200)
tree62171cf748166ab8ef63d2f03b0a9e956d80e414
parent4c304ed93ad36ea02f4ab3bdb9d61c03f82a381d
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