diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-12-29 05:49:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-30 17:15:41 -0500 |
commit | cd3109d23c32452c85d73cc1a01282846a23582c (patch) | |
tree | 95195ca3c3a6955cb08bf813265950888c3e3f36 | |
parent | 89307babf966165171547f105e2253dec261cfa5 (diff) | |
download | op-kernel-dev-cd3109d23c32452c85d73cc1a01282846a23582c.zip op-kernel-dev-cd3109d23c32452c85d73cc1a01282846a23582c.tar.gz |
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.c | 1 |
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 227997d..5829e0b 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; } |