[openib-general] [PATCH] [uDAPL] 4/5 per device communication identifiers

Sean Hefty sean.hefty at intel.com
Thu Sep 15 10:49:37 PDT 2005


Convert uDAPL to use per device cm_id's.

Untested, but changes appear straightforward.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>


Index: userspace/dapl/dapl/openib/dapl_ib_cm.c
===================================================================
--- userspace/dapl/dapl/openib/dapl_ib_cm.c	(revision 3433)
+++ userspace/dapl/dapl/openib/dapl_ib_cm.c	(working copy)
@@ -573,7 +573,7 @@ dapls_ib_connect (
 
 	conn->ep = ep_ptr;
 	conn->hca = ep_ptr->header.owner_ia->hca_ptr;
-	status = ib_cm_create_id(&conn->cm_id, conn);
+	status = ib_cm_create_id(conn->hca->ib_hca_handle, &conn->cm_id, conn);
 	if (status < 0)  {
 		dat_status = dapl_convert_errno(errno,"create_cm_id");
 		dapl_os_free(conn, sizeof(*conn));
@@ -749,7 +749,8 @@ dapls_ib_setup_conn_listener (
 		return DAT_INTERNAL_ERROR;
 	}
 	 
-	status = ib_cm_create_id(&conn->cm_id, conn);
+	status = ib_cm_create_id(ia_ptr->hca_ptr->ib_hca_handle, &conn->cm_id,
+				 conn);
 	if (status < 0)  {
 		dat_status = dapl_convert_errno(errno,"create_cm_id");
 		dapl_os_free(conn, sizeof(*conn));






More information about the general mailing list