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>
This commit is contained in:
		
					parent
					
						
							
								89307babf9
							
						
					
				
			
			
				commit
				
					
						cd3109d23c
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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);
 | 
						mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
 | 
				
			||||||
	if (priv->mdev->dev->caps.comp_pool && cq->vector)
 | 
						if (priv->mdev->dev->caps.comp_pool && cq->vector)
 | 
				
			||||||
		mlx4_release_eq(priv->mdev->dev, cq->vector);
 | 
							mlx4_release_eq(priv->mdev->dev, cq->vector);
 | 
				
			||||||
 | 
						cq->vector = 0;
 | 
				
			||||||
	cq->buf_size = 0;
 | 
						cq->buf_size = 0;
 | 
				
			||||||
	cq->buf = NULL;
 | 
						cq->buf = NULL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue