nvme_rdma: set retry_count field in rdma_conn_param

For using SoftRoce, there will be packets loss,
so we need to use this value for re-transmission.
retry_count means the maximum number of times that
a data transfer operation should be retried on the
connection when an error occurs.

Change-Id: Ibd81a33d3838bbdf0c054f01666e7ec59bb0a38f
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/382079
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Ziye Yang 2017-10-11 13:03:41 +08:00 committed by Jim Harris
parent 13d4f08480
commit b114103736

View File

@ -500,6 +500,7 @@ nvme_rdma_connect(struct nvme_rdma_qpair *rqpair)
param.private_data = &request_data;
param.private_data_len = sizeof(request_data);
param.retry_count = 7;
ret = rdma_connect(rqpair->cm_id, &param);
if (ret) {