mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 13:46:39 +07:00
net/mlx4_en: IRQ affinity hint is not cleared on port down
Need to remove affinity hint at mlx4_en_deactivate_cq() and not at mlx4_en_destroy_cq() - since affinity_mask might be free'd while still being used by procfs. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
143b5ba21b
commit
bb273617a6
@ -191,8 +191,6 @@ void mlx4_en_destroy_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq **pcq)
|
||||
mlx4_en_unmap_buffer(&cq->wqres.buf);
|
||||
mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
|
||||
if (priv->mdev->dev->caps.comp_pool && cq->vector) {
|
||||
if (!cq->is_tx)
|
||||
irq_set_affinity_hint(cq->mcq.irq, NULL);
|
||||
mlx4_release_eq(priv->mdev->dev, cq->vector);
|
||||
}
|
||||
cq->vector = 0;
|
||||
@ -208,6 +206,7 @@ void mlx4_en_deactivate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq)
|
||||
if (!cq->is_tx) {
|
||||
napi_hash_del(&cq->napi);
|
||||
synchronize_rcu();
|
||||
irq_set_affinity_hint(cq->mcq.irq, NULL);
|
||||
}
|
||||
netif_napi_del(&cq->napi);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user