summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2011-12-29 05:49:58 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-30 17:15:41 -0500
commitcd3109d23c32452c85d73cc1a01282846a23582c (patch)
tree95195ca3c3a6955cb08bf813265950888c3e3f36
parent89307babf966165171547f105e2253dec261cfa5 (diff)
downloadblackbird-op-linux-cd3109d23c32452c85d73cc1a01282846a23582c.tar.gz
blackbird-op-linux-cd3109d23c32452c85d73cc1a01282846a23582c.zip
mlx4_en: nullify cq->vector field when closing completion queue
Caused loss of connectivity when changing ring size. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_cq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_cq.c b/drivers/net/ethernet/mellanox/mlx4/en_cq.c
index 227997d775e8..5829e0b47e7e 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_cq.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_cq.c
@@ -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;
}
OpenPOWER on IntegriCloud