Skip to content

Commit cd3109d

Browse files
Yevgeny Petrilindavem330
authored andcommitted
mlx4_en: nullify cq->vector field when closing completion queue
Caused loss of connectivity when changing ring size. Signed-off-by: Yevgeny Petrilin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 89307ba commit cd3109d

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx4/en_cq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void mlx4_en_destroy_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq)
147147
mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
148148
if (priv->mdev->dev->caps.comp_pool && cq->vector)
149149
mlx4_release_eq(priv->mdev->dev, cq->vector);
150+
cq->vector = 0;
150151
cq->buf_size = 0;
151152
cq->buf = NULL;
152153
}

0 commit comments

Comments
 (0)