Skip to content

Commit

Permalink
fm10k: use napi_schedule_irqoff()
Browse files Browse the repository at this point in the history
The fm10k_msix_clean_rings function runs from hard interrupt context or
with interrupts already disabled in netpoll.

It can use napi_schedule_irqoff() instead of napi_schedule()

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Nov 25, 2015
1 parent 9458cea commit de125aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/fm10k/fm10k_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ static irqreturn_t fm10k_msix_clean_rings(int __always_unused irq, void *data)
struct fm10k_q_vector *q_vector = data;

if (q_vector->rx.count || q_vector->tx.count)
napi_schedule(&q_vector->napi);
napi_schedule_irqoff(&q_vector->napi);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit de125aa

Please sign in to comment.