Skip to content

Commit

Permalink
net: thunderx: Use napi_schedule_irqoff()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sunil Goutham authored and David S. Miller committed Feb 11, 2016
1 parent a05d484 commit ef0a4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cavium/thunder/nicvf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef0a4d8

Please sign in to comment.