diff options
author | Eric Dumazet <edumazet@google.com> | 2014-10-29 16:54:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 16:50:47 -0400 |
commit | 477b35b44febe2c972e35ca6517ea9c9768a2458 (patch) | |
tree | 8f3412d9f54c4c25c21be07c08415324c58812b0 /drivers/net/ethernet/mellanox/mlx4/en_rx.c | |
parent | f4e715c3254e3c0167b5d4272901a2b248b65ad2 (diff) | |
download | op-kernel-dev-477b35b44febe2c972e35ca6517ea9c9768a2458.zip op-kernel-dev-477b35b44febe2c972e35ca6517ea9c9768a2458.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_rx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index c8e75da..c562c14 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c @@ -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); } |