[openib-general] [PATCH 1/3] OpenSM/port profile: Fix endian for some osm_port_prof routines

Hal Rosenstock halr at voltaire.com
Sat Jan 20 07:31:22 PST 2007


OpenSM/port profile: Fix endian for some osm_port_prof routines

osm_port_prof_set_ignored_port and osm_port_prof_is_ignored_port take
network rather than host order

Signed-off-by: Dale Purdy <purdy at sgi.com>
Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/osm/include/opensm/osm_port_profile.h b/osm/include/opensm/osm_port_profile.h
index 53fcb13..88d4caf 100644
--- a/osm/include/opensm/osm_port_profile.h
+++ b/osm/include/opensm/osm_port_profile.h
@@ -209,7 +209,7 @@ osm_port_prof_path_count_get(
 static inline boolean_t
 osm_port_prof_is_ignored_port(
 	IN const osm_subn_t *p_subn, 
-	IN uint64_t port_guid,
+	IN ib_net64_t port_guid,
 	IN uint8_t port_num )
 {
   const cl_map_t *p_map = &(p_subn->opt.port_prof_ignore_guids);
@@ -251,7 +251,7 @@ osm_port_prof_is_ignored_port(
 static inline void
 osm_port_prof_set_ignored_port(
 	IN osm_subn_t *p_subn, 
-	IN uint64_t port_guid,
+	IN ib_net64_t port_guid,
 	IN uint8_t port_num )
 {
   cl_map_t *p_map = &(p_subn->opt.port_prof_ignore_guids);
diff --git a/osm/opensm/osm_ucast_mgr.c b/osm/opensm/osm_ucast_mgr.c
index 118c9ef..ded3880 100644
--- a/osm/opensm/osm_ucast_mgr.c
+++ b/osm/opensm/osm_ucast_mgr.c
@@ -840,7 +840,7 @@ __osm_ucast_mgr_process_port(
 	as in the case of the Mellanox Anafa Internal PCI TCA port
       */
       is_ignored_by_port_prof =
-	osm_port_prof_is_ignored_port(p_mgr->p_subn, cl_ntoh64(node_guid), port);
+	osm_port_prof_is_ignored_port(p_mgr->p_subn, node_guid, port);
 
       /*
 	We also would ignore this route if the target lid is of a switch







More information about the general mailing list