Implement simple "flow control" for RDMA (to check hypothesis about slowdowns)

This commit is contained in:
Vitaliy Filippov
2023-03-24 01:57:32 +03:00
parent 3bbc46543d
commit 8aec63fddd
2 changed files with 25 additions and 3 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ struct msgr_rdma_connection_t
ibv_qp *qp = NULL;
msgr_rdma_address_t addr;
int max_send = 0, max_recv = 0, max_sge = 0;
int cur_send = 0, cur_recv = 0;
int cur_send = 0, cur_recv = 0, avail_recv = 0, avail_send = 0;
bool use_flow_control = false;
uint64_t max_msg = 0;
int send_pos = 0, send_buf_pos = 0;