Commit 549f091e authored by Titouan Soulard's avatar Titouan Soulard

libcapulet: allow detecting race conditions

parent 8a678d25
...@@ -170,9 +170,11 @@ bool capulet_rdma_ib_set_peer_from_udp(struct CapuletRdmaIbContext *ctx, struct ...@@ -170,9 +170,11 @@ bool capulet_rdma_ib_set_peer_from_udp(struct CapuletRdmaIbContext *ctx, struct
// Change state from RTR to RTS (Ready To Send) // Change state from RTR to RTS (Ready To Send)
memset(&ibv_dev_qp_params, 0, sizeof(struct ibv_qp_attr)); memset(&ibv_dev_qp_params, 0, sizeof(struct ibv_qp_attr));
ibv_dev_qp_params.qp_state = IBV_QPS_RTS; ibv_dev_qp_params.qp_state = IBV_QPS_RTS;
ibv_dev_qp_params.timeout = 0x12; // Debugging parameters: infinite timeout without retry
ibv_dev_qp_params.retry_cnt = 7; // This will make the polling wait forever when a race condition occurs
ibv_dev_qp_params.rnr_retry = 7; ibv_dev_qp_params.timeout = 0;
ibv_dev_qp_params.retry_cnt = 0;
ibv_dev_qp_params.rnr_retry = 0;
ibv_dev_qp_params.sq_psn = udp_ctx->local->psn; ibv_dev_qp_params.sq_psn = udp_ctx->local->psn;
ibv_dev_qp_params.max_rd_atomic = 1; ibv_dev_qp_params.max_rd_atomic = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment