[ofw] [PATCH 13/15] uDAPL v2.0 windows: Provide auto-detect between RoCE and Infiniband for Windows.

Davis, Arlin R arlin.r.davis at intel.com
Mon Apr 23 13:01:11 PDT 2012


For RoCE, enable transport global ID use.

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_common/util.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dapl/openib_common/util.c b/dapl/openib_common/util.c
index c118ca9..06a6f3d 100644
--- a/dapl/openib_common/util.c
+++ b/dapl/openib_common/util.c
@@ -352,6 +352,17 @@ skip_ib:
 			 port_attr.link_layer);
 #endif
 #endif
+
+#ifdef _WIN32
+#ifndef _OPENIB_CMA_
+		if (port_attr.transport != IBV_TRANSPORT_IB)
+			hca_ptr->ib_trans.global = 1;
+
+		dapl_log(DAPL_DBG_TYPE_UTIL,
+			 " query_hca: port.transport %d ib_trans.global %d\n",
+			 port_attr.transport, hca_ptr->ib_trans.global);
+#endif
+#endif
 		dapl_log(DAPL_DBG_TYPE_UTIL,
 			     " query_hca: (%x.%x) eps %d, sz %d evds %d,"
 			     " sz %d mtu %d - pkey %x p_idx %d sl %d\n",
-- 
1.7.3






More information about the ofw mailing list