From b6a9ee57bf411b11464ea5f85aaef7c955488623 Mon Sep 17 00:00:00 2001 From: Hamdan Igbaria Date: Tue, 30 Jun 2020 13:54:23 +0300 Subject: [PATCH] mlx5: Fix compilation errors when compiling with MLX5_DEBUG Fix compilation errors when compiling with MLX5_DEBUG. The break occurred when the 'verbs_cq' patch was introduced, however it didn't replace the code under the MLX5_DEBUG mode to match its change. Fixes: 195c91918f38 ("verbs: Introduce verbs_cq for extended CQ operations") Signed-off-by: Hamdan Igbaria Signed-off-by: Yishai Hadas --- providers/mlx5/cq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/mlx5/cq.c b/providers/mlx5/cq.c index 34613f041..365623e5d 100644 --- a/providers/mlx5/cq.c +++ b/providers/mlx5/cq.c @@ -535,7 +535,7 @@ static inline int mlx5_get_next_cqe(struct mlx5_cq *cq, #ifdef MLX5_DEBUG { - struct mlx5_context *mctx = to_mctx(cq->ibv_cq.context); + struct mlx5_context *mctx = to_mctx(cq->verbs_cq.cq_ex.context); if (mlx5_debug_mask & MLX5_DBG_CQ_CQE) { FILE *fp = mctx->dbg_fp; @@ -605,7 +605,7 @@ static int handle_tag_matching(struct mlx5_cq *cq, #ifdef MLX5_DEBUG if (srq->op_tail == srq->op_head) { mlx5_dbg(fp, MLX5_DBG_CQ, "got unexpected list op CQE\n"); - cq->ibv_cq.status = IBV_WC_GENERAL_ERR; + cq->verbs_cq.cq_ex.status = IBV_WC_GENERAL_ERR; mlx5_spin_unlock(&srq->lock); return CQ_OK; }