Skip to content

Commit

Permalink
mlx5: Fix compilation errors when compiling with MLX5_DEBUG
Browse files Browse the repository at this point in the history
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: 195c919 ("verbs: Introduce verbs_cq for extended CQ operations")
Signed-off-by: Hamdan Igbaria <hamdani@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
  • Loading branch information
Hamdan Igbaria authored and yishaih committed Jun 30, 2020
1 parent be9938f commit b6a9ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/mlx5/cq.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b6a9ee5

Please sign in to comment.