[ofa-general] [PATCH] opensm: Add SuperMicro to list of recognized vendors

Hal Rosenstock hnrose at comcast.net
Mon Apr 27 06:53:30 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/include/opensm/osm_base.h b/opensm/include/opensm/osm_base.h
index e973a70..bca1133 100644
--- a/opensm/include/opensm/osm_base.h
+++ b/opensm/include/opensm/osm_base.h
@@ -872,6 +872,7 @@ typedef enum _osm_sm_signal {
 #define OSM_VENDOR_ID_XSIGO         0x001397
 #define OSM_VENDOR_ID_HP2           0x0018FE
 #define OSM_VENDOR_ID_DELL          0x00188B
+#define OSM_VENDOR_ID_SUPERMICRO    0x003048
 
 /**********/
 
diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index ae5a703..0123edc 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -2225,6 +2225,7 @@ const char *osm_get_manufacturer_str(IN uint64_t const guid_ho)
 	static const char *leafntwks_str = "3LeafNtwks";
 	static const char *xsigo_str = "Xsigo";
 	static const char *dell_str = "Dell";
+	static const char *supermicro_str = "SuperMicro";
 	static const char *unknown_str = "Unknown";
 
 	switch ((uint32_t) (guid_ho >> (5 * 8))) {
@@ -2278,6 +2279,8 @@ const char *osm_get_manufacturer_str(IN uint64_t const guid_ho)
 		return (xsigo_str);
 	case OSM_VENDOR_ID_DELL:
 		return (dell_str);
+	case OSM_VENDOR_ID_SUPERMICRO:
+		return (supermicro_str);
 	default:
 		return (unknown_str);
 	}



More information about the general mailing list