Skip to content

Commit

Permalink
Merge pull request #277 from hginjgerx/td
Browse files Browse the repository at this point in the history
Perftest: Fix TD lock-free mode not working for QP
  • Loading branch information
sshaulnv authored Aug 27, 2024
2 parents bac86b0 + ae3c7cb commit 10fbd0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -2384,7 +2384,13 @@ struct ibv_qp* ctx_qp_create(struct pingpong_context *ctx,
else if (opcode == IBV_WR_RDMA_READ)
attr_ex.send_ops_flags |= IBV_QP_EX_WITH_RDMA_READ;
}

#ifdef HAVE_TD_API
attr_ex.pd = user_param->no_lock ? ctx->pad : ctx->pd;
#else
attr_ex.pd = ctx->pd;
#endif

attr_ex.comp_mask |= IBV_QP_INIT_ATTR_SEND_OPS_FLAGS | IBV_QP_INIT_ATTR_PD;
attr_ex.send_cq = attr.send_cq;
attr_ex.recv_cq = attr.recv_cq;
Expand Down

0 comments on commit 10fbd0b

Please sign in to comment.