mlx4_en: nullify cq->vector field when closing completion queue
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Thu, 29 Dec 2011 05:49:58 +0000 (05:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2011 22:15:41 +0000 (17:15 -0500)
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>
drivers/net/ethernet/mellanox/mlx4/en_cq.c

index 227997d775e858b08a7cde4e92036738c803acc9..5829e0b47e7e5963a8d5913505f2c3f5392dfbab 100644 (file)
@@ -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;
 }