[ewg] [PATCH 1/3][2.0] dapl: change cma provider to use max_rdma_read_in, out from ep_attr instead of HCA max values when connecting.
Arlin Davis
arlin.r.davis at intel.com
Wed May 21 15:07:24 PDT 2008
Patch set for v2.0. Same fixes already applied to v1.2
Signed-off by: Arlin Davis ardavis at ichips.intel.com
---
dapl/openib_cma/dapl_ib_cm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dapl/openib_cma/dapl_ib_cm.c b/dapl/openib_cma/dapl_ib_cm.c
index d3835b3..de35eba 100755
--- a/dapl/openib_cma/dapl_ib_cm.c
+++ b/dapl/openib_cma/dapl_ib_cm.c
@@ -540,8 +540,10 @@ DAT_RETURN dapls_ib_connect(IN DAT_EP_HANDLE ep_handle,
/* Setup QP/CM parameters and private data in cm_id */
(void)dapl_os_memzero(&conn->params, sizeof(conn->params));
- conn->params.responder_resources = conn->hca->ib_trans.max_rdma_rd_in;
- conn->params.initiator_depth = conn->hca->ib_trans.max_rdma_rd_out;
+ conn->params.responder_resources =
+ ep_ptr->param.ep_attr.max_rdma_read_in;
+ conn->params.initiator_depth =
+ ep_ptr->param.ep_attr.max_rdma_read_out;
conn->params.flow_control = 1;
conn->params.rnr_retry_count = IB_RNR_RETRY_COUNT;
conn->params.retry_count = IB_RC_RETRY_COUNT;
--
1.5.2.5
More information about the ewg
mailing list