mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
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: Ido Shamay <idos@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c2a3d4b4ca
commit
f4a3675158
@ -1843,8 +1843,7 @@ void mlx4_en_stop_port(struct net_device *dev, int detach)
|
||||
}
|
||||
local_bh_enable();
|
||||
|
||||
while (test_bit(NAPI_STATE_SCHED, &cq->napi.state))
|
||||
msleep(1);
|
||||
napi_synchronize(&cq->napi);
|
||||
mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]);
|
||||
mlx4_en_deactivate_cq(priv, cq);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user