Skip to contentSkip to conversation

mlx4_en: nullify cq->vector field when closing completion queue

PATCH Applied Yevgeny Petrilin 2 participants 2 messages Dec 29, 2011 – Dec 30, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mlx4_en: nullify cq->vector field when closing completion queue

Caused loss of connectivity when changing ring size.

---
 drivers/net/ethernet/mellanox/mlx4/en_cq.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/mellanox/mlx4/en_cq.c +1 -0
index 227997d..5829e0b 100644
@@ -147,6 +147,7 @@ void mlx4_en_destroy_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq)
 	mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
 	if (priv->mdev->dev->caps.comp_pool && cq->vector)
 		mlx4_release_eq(priv->mdev->dev, cq->vector);
+	cq->vector = 0;
 	cq->buf_size = 0;
 	cq->buf = NULL;
 }
Signature · 1 line
1.5.4.3