[ofa-general] [PATCH] opensm: fix OSM_DEFAULT_SM_KEY byte order
Sasha Khapyorsky
sashak at voltaire.com
Tue Jun 10 06:06:47 PDT 2008
Keep OSM_DEFAULT_SM_KEY value in network byte order.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/include/opensm/osm_base.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/include/opensm/osm_base.h b/opensm/include/opensm/osm_base.h
index d07ad8c..3793804 100644
--- a/opensm/include/opensm/osm_base.h
+++ b/opensm/include/opensm/osm_base.h
@@ -112,7 +112,7 @@ BEGIN_C_DECLS
*
* SYNOPSIS
*/
-#define OSM_DEFAULT_SM_KEY 1
+#define OSM_DEFAULT_SM_KEY CL_HTON64(1)
/********/
/****s* OpenSM: Base/OSM_DEFAULT_SA_KEY
* NAME
@@ -123,7 +123,7 @@ BEGIN_C_DECLS
*
* SYNOPSIS
*/
-#define OSM_DEFAULT_SA_KEY 1
+#define OSM_DEFAULT_SA_KEY OSM_DEFAULT_SM_KEY
/********/
/****s* OpenSM: Base/OSM_DEFAULT_LMC
* NAME
--
1.5.5.1.178.g1f811
More information about the general
mailing list