提交 f4a36751 编写于 作者: I Ido Shamay 提交者: David S. Miller

net/mlx4_en: Call napi_synchronize on stop_port

This is instead of calling the actual implementation of
napi_synchronize, for better encapsulation.
Signed-off-by: NIdo Shamay <idos@mellanox.com>
Signed-off-by: NAmir Vadai <amirv@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c2a3d4b4
...@@ -1843,8 +1843,7 @@ void mlx4_en_stop_port(struct net_device *dev, int detach) ...@@ -1843,8 +1843,7 @@ void mlx4_en_stop_port(struct net_device *dev, int detach)
} }
local_bh_enable(); local_bh_enable();
while (test_bit(NAPI_STATE_SCHED, &cq->napi.state)) napi_synchronize(&cq->napi);
msleep(1);
mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]); mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]);
mlx4_en_deactivate_cq(priv, cq); mlx4_en_deactivate_cq(priv, cq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册