Commit 65d81d7e authored by Titouan Soulard's avatar Titouan Soulard

libcapulet: commit parameters used for a functionnal demo

- Revert to 1024 MTU
- Update RNR retry parameters (retry twice)
- Change MR size to match SDR return size
parent 827558d7
......@@ -11,7 +11,7 @@
#include "libcapulet/net_udp.h"
#define TRX_RDMA_MR_COUNT 32
#define TRX_RDMA_MR_SIZE 32768
#define TRX_RDMA_MR_SIZE 256
#define TRX_RDMA_BUFFER_SIZE 131072
// XXX: hardcoded parameter
#define TRX_RDMA_CHANNEL_COUNT 2
......
......@@ -146,7 +146,7 @@ bool capulet_rdma_ib_set_peer_from_udp(struct CapuletRdmaIbContext *ctx, struct
// Change state from Init to RTR (Ready To Receive)
memset(&ibv_dev_qp_params, 0, sizeof(struct ibv_qp_attr));
ibv_dev_qp_params.qp_state = IBV_QPS_RTR;
ibv_dev_qp_params.path_mtu = IBV_MTU_4096;
ibv_dev_qp_params.path_mtu = IBV_MTU_1024;
ibv_dev_qp_params.dest_qp_num = udp_ctx->remote->qpn;
ibv_dev_qp_params.rq_psn = udp_ctx->remote->psn;
ibv_dev_qp_params.max_dest_rd_atomic = 1;
......@@ -171,11 +171,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;
// Debugging parameters: infinite timeout without retry
// Debugging parameters: infinite timeout
// 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.retry_cnt = 2;
ibv_dev_qp_params.rnr_retry = 2;
ibv_dev_qp_params.sq_psn = udp_ctx->local->psn;
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