r8169: switch to napi_schedule_irqoff

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>
This commit is contained in:
Heiner Kallweit 2018-04-17 23:21:01 +02:00 committed by David S. Miller
parent 37621493b8
commit 9a899a35b0

View 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);