summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-04-17 23:21:01 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-18 21:11:58 -0400
commit9a899a35b0d6b28b31cb04e042a349ef2fe18557 (patch)
tree211d0aeef6cf71deff6eca157aca054e88f8420b /drivers
parent37621493b873b3701129333117da683b8e7a9da6 (diff)
downloadlinux-9a899a35b0d6b28b31cb04e042a349ef2fe18557.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/realtek/r8169.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index cc88e8ee45c7..34447a2e3763 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -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);