[openib-general] [PATCH] OpenSM/osm_base.h: Modify some SM constants

Hal Rosenstock halr at voltaire.com
Thu Dec 15 06:56:22 PST 2005


OpenSM/osm_base.h: Modify some SM constants

Default SM Key should not be 0
Also, changed default SM priority to 1 so can have lower priority SM
(and not rely on low GUID comparison). Note also that priority sense
was inverted in comment.

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: osm_base.h
===================================================================
--- osm_base.h	(revision 4478)
+++ osm_base.h	(working copy)
@@ -122,7 +122,7 @@ BEGIN_C_DECLS
 *
 * SYNOPSIS
 */
-#define OSM_DEFAULT_SM_KEY 0
+#define OSM_DEFAULT_SM_KEY 1
 /********/
 
 /****s* OpenSM: Base/OSM_DEFAULT_LMC
@@ -169,11 +169,11 @@ BEGIN_C_DECLS
 *
 * DESCRIPTION
 *	Default SM priority value used by the OpenSM,
-*	as defined in the SMInfo attribute.  0 is the highest priority.
+*	as defined in the SMInfo attribute.  0 is the lowest priority.
 *
 * SYNOPSIS
 */
-#define OSM_DEFAULT_SM_PRIORITY 0
+#define OSM_DEFAULT_SM_PRIORITY 1
 /********/
 
 /****d* OpenSM: Base/OSM_DEFAULT_TMP_DIR





More information about the general mailing list