[ofa-general] {PATCH 1/2] OpenSM/ib_types.h: Clarify the proper usage of ib_get_node_type_str

Hal Rosenstock halr at voltaire.com
Wed Apr 25 06:50:15 PDT 2007


osm/include/iba/ib_types.h: ib_get_node_type_str is to be used for
decoding the node_type from the node info attribute only

Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
Signed-off-by: Hal Rosenstock <halr at voltaire.com>

 osm/include/iba/ib_types.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/osm/include/iba/ib_types.h b/osm/include/iba/ib_types.h
index c94b7fc..9bc2846 100644
--- a/osm/include/iba/ib_types.h
+++ b/osm/include/iba/ib_types.h
@@ -1829,8 +1829,7 @@ static const char* const __ib_node_type_
 	"UNKNOWN",
 	"Channel Adapter",
 	"Switch",
-	"Router",
-	"Subnet Management"
+	"Router"
 };
 
 /****f* IBA Base: Types/ib_get_node_type_str
@@ -1839,12 +1838,13 @@ static const char* const __ib_node_type_
 *
 * DESCRIPTION
 *	Returns a string for the specified node type.
+*	14.2.5.3 NodeInfo
 *
 * SYNOPSIS
 */
 static inline const char*	OSM_API
 ib_get_node_type_str(
-	IN uint32_t node_type )
+	IN uint8_t node_type )
 {
 	if( node_type > IB_NODE_TYPE_ROUTER )
 		node_type = 0;
-- 
1.4.4







More information about the general mailing list