Port GUID was not converted using cl_ntoh64 before being searched in the CN cl_qmap. Therefore, the cn_guid_file needed to be reversed (bigendian<->littleendian conversion) so it would recognize the nodes.
This patch makes it consistent with the root_guid_file and the log messages.


Signed-off-by: Nicolas Morey-Chaisemartin <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_ucast_ftree.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index 875954b..aa51d23 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -2878,8 +2878,8 @@ __osm_ftree_fabric_construct_hca_ports(IN ftree_fabric_t * p_ftree,
 			name_map_item_t *p_elem =
 			    (name_map_item_t *) cl_qmap_get(&p_ftree->
 							    cn_guid_tbl,
-							    osm_physp_get_port_guid
-							    (p_osm_port));
+							    cl_ntoh64(osm_physp_get_port_guid
+							    (p_osm_port)));
 			if (p_elem !=
 			    (name_map_item_t *) cl_qmap_end(&p_ftree->
 							    cn_guid_tbl))

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

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to