Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rdma-mwe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
rdma-mwe
Commits
549f091e
Commit
549f091e
authored
Feb 13, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libcapulet: allow detecting race conditions
parent
8a678d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libcapulet/rdma_ib.c
libcapulet/rdma_ib.c
+5
-3
No files found.
libcapulet/rdma_ib.c
View file @
549f091e
...
...
@@ -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)
memset
(
&
ibv_dev_qp_params
,
0
,
sizeof
(
struct
ibv_qp_attr
));
ibv_dev_qp_params
.
qp_state
=
IBV_QPS_RTS
;
ibv_dev_qp_params
.
timeout
=
0x12
;
ibv_dev_qp_params
.
retry_cnt
=
7
;
ibv_dev_qp_params
.
rnr_retry
=
7
;
// Debugging parameters: infinite timeout without retry
// This will make the polling wait forever when a race condition occurs
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
.
max_rd_atomic
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment