]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: thunderx: Use napi_schedule_irqoff()
authorSunil Goutham <sgoutham@cavium.com>
Thu, 11 Feb 2016 16:20:22 +0000 (21:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 16:30:26 +0000 (11:30 -0500)
napi_schedule is being called from hard irq context, hence
switch to napi_schedule_irqoff which avoids unneeded call
to local_irq_save and local_irq_restore.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c

index 95db6b7e3aab0718ea707e11f92e95c829f14d14..c6f146cf266de6bc329e5f7f02b4a083528cbf3e 100644 (file)
@@ -828,7 +828,7 @@ static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq)
        nicvf_disable_intr(nic, NICVF_INTR_CQ, qidx);
 
        /* Schedule NAPI */
-       napi_schedule(&cq_poll->napi);
+       napi_schedule_irqoff(&cq_poll->napi);
 
        /* Clear interrupt */
        nicvf_clear_intr(nic, NICVF_INTR_CQ, qidx);