Skip to content

Commit

Permalink
Merge pull request #785 from yishaih/mlx5_misc
Browse files Browse the repository at this point in the history
mlx5: Fix compilation errors when compiling with MLX5_DEBUG
  • Loading branch information
yishaih committed Jun 30, 2020
2 parents be9938f + b6a9ee5 commit 53d8464
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 53d8464

Please sign in to comment.