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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:53:15 +0000 (14:53 -0700)
commit9423361da52356cb68642db5b2729b6b85aad330
tree5a7429396026e03d976d8c8164ef90166664bd8a
parentc582a7fea9dad4d309437d1a7e22e6d2cb380e2e
net: lantiq: Disable IRQs only if NAPI gets scheduled

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>
drivers/net/ethernet/lantiq_xrx200.c