mlx4: use napi_schedule_irqoff()
mlx4_en_rx_irq() and mlx4_en_tx_irq() run from hard interrupt context. They can use napi_schedule_irqoff() instead of napi_schedule() Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-By: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f4e715c325
commit
477b35b44f
@ -878,8 +878,8 @@ void mlx4_en_rx_irq(struct mlx4_cq *mcq)
|
||||
struct mlx4_en_cq *cq = container_of(mcq, struct mlx4_en_cq, mcq);
|
||||
struct mlx4_en_priv *priv = netdev_priv(cq->dev);
|
||||
|
||||
if (priv->port_up)
|
||||
napi_schedule(&cq->napi);
|
||||
if (likely(priv->port_up))
|
||||
napi_schedule_irqoff(&cq->napi);
|
||||
else
|
||||
mlx4_en_arm_cq(priv, cq);
|
||||
}
|
||||
|
@ -479,8 +479,8 @@ void mlx4_en_tx_irq(struct mlx4_cq *mcq)
|
||||
struct mlx4_en_cq *cq = container_of(mcq, struct mlx4_en_cq, mcq);
|
||||
struct mlx4_en_priv *priv = netdev_priv(cq->dev);
|
||||
|
||||
if (priv->port_up)
|
||||
napi_schedule(&cq->napi);
|
||||
if (likely(priv->port_up))
|
||||
napi_schedule_irqoff(&cq->napi);
|
||||
else
|
||||
mlx4_en_arm_cq(priv, cq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user