r8169: switch to napi_schedule_irqoff
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Apr 2018 21:21:01 +0000 (23:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:11:58 +0000 (21:11 -0400)
napi_schedule() is called from hard irq context, so we can switch to
napi_schedule_irqoff() and avoid some overhead.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index cc88e8e..34447a2 100644 (file)
@@ -7473,7 +7473,7 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
                        handled = 1;
 
                        rtl_irq_disable(tp);
-                       napi_schedule(&tp->napi);
+                       napi_schedule_irqoff(&tp->napi);
                }
        }
        return IRQ_RETVAL(handled);