Hi Sasha,

  mad_context.pi_context.port_guid = cl_hton64(p_physp->port_guid);

cl_hnon64() is not needed.
I generated the patch [1] according to your comments. Please let me know if there is any problem.

Cheers,

Vincent

patch [1]:

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index f15a4af..780d8db 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -202,8 +202,7 @@ __osm_state_mgr_get_remote_port_info(IN osm_sm_t * sm,

mad_context.pi_context.node_guid =
osm_node_get_node_guid(osm_physp_get_node_ptr(p_physp));
- mad_context.pi_context.port_guid =
- cl_hton64(osm_physp_get_port_num(p_physp));
+ mad_context.pi_context.port_guid = p_physp->port_guid;
mad_context.pi_context.set_method = FALSE;
mad_context.pi_context.light_sweep = TRUE;
mad_context.pi_context.update_master_sm_base_lid = FALSE;

_______________________________________________
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