[ofa-general] [PATCH 1/2][dat1.2] 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
Mon May 12 11:29:35 PDT 2008
Signed-off by: Arlin Davis ardavis at ichips.intel.com
---
dapl/openib_cma/dapl_ib_cm.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dapl/openib_cma/dapl_ib_cm.c b/dapl/openib_cma/dapl_ib_cm.c
index f08ee4b..f2eb8cb 100755
--- a/dapl/openib_cma/dapl_ib_cm.c
+++ b/dapl/openib_cma/dapl_ib_cm.c
@@ -404,9 +404,6 @@ static void dapli_cm_passive_cb(struct dapl_cm_id *conn,
struct rdma_cm_event *event)
{
struct dapl_cm_id *new_conn;
-#ifdef DAPL_DBG
- struct rdma_addr *ipaddr = &conn->cm_id->route.addr;
-#endif
dapl_dbg_log(DAPL_DBG_TYPE_CM,
" passive_cb: conn %p id %d event %d\n",
@@ -539,8 +536,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 general
mailing list