For RoCE, enable transport global ID use.

Signed-off-by: Arlin Davis <[email protected]>
---
 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



_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to