[PATCH rdma-core 4/7] mlx5: Use macro for CQE version 1

Yishai Hadas
2017-01-26T15:56:19Z

From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

There is macro defined to mark CQE version 1, so let's use it.

Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Reviewed-by: Majd Dibbiny <majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Acked-by: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
providers/mlx5/mlx5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/mlx5/mlx5.c b/providers/mlx5/mlx5.c
index 1cf5a5f..980e4df 100644
--- a/providers/mlx5/mlx5.c
+++ b/providers/mlx5/mlx5.c
@@ -771,7 +771,7 @@ static int mlx5_init_context(struct verbs_device *vdev,

context->cqe_version = resp.cqe_version;
if (context->cqe_version) {
- if (context->cqe_version == 1)
+ if (context->cqe_version == MLX5_CQE_VERSION_V1)
mlx5_ctx_ops.poll_cq = mlx5_poll_cq_v1;
else
goto err_free_bf;
--
1.8.3.1