mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
MFC r319413:
Free hardware queue resource after port is stopped in the mlx4en(4) driver. Else if the port is up the resource might still be busy and the MTT free will fail. PR: 216493 Sponsored by: Mellanox Technologies
This commit is contained in:
parent
ab3ddfa194
commit
81f2bbb508
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=319567
@ -1732,13 +1732,12 @@ void mlx4_en_destroy_netdev(struct net_device *dev)
|
||||
mutex_unlock(&mdev->state_lock);
|
||||
}
|
||||
|
||||
if (priv->allocated)
|
||||
mlx4_free_hwq_res(mdev->dev, &priv->res, MLX4_EN_PAGE_SIZE);
|
||||
|
||||
mutex_lock(&mdev->state_lock);
|
||||
mlx4_en_stop_port(dev);
|
||||
mutex_unlock(&mdev->state_lock);
|
||||
|
||||
if (priv->allocated)
|
||||
mlx4_free_hwq_res(mdev->dev, &priv->res, MLX4_EN_PAGE_SIZE);
|
||||
|
||||
cancel_delayed_work(&priv->stats_task);
|
||||
cancel_delayed_work(&priv->service_task);
|
||||
|
Loading…
Reference in New Issue
Block a user