public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] opensm: Add OSM_VENDOR_ID_OPENIB support
Date: Mon, 04 Apr 2011 14:46:51 -0400	[thread overview]
Message-ID: <4D9A121B.3080009@dev.mellanox.co.il> (raw)


Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/include/opensm/osm_base.h b/include/opensm/osm_base.h
index fa4c78d..3735610 100644
--- a/include/opensm/osm_base.h
+++ b/include/opensm/osm_base.h
@@ -917,6 +917,7 @@ typedef enum _osm_sm_signal {
 #define OSM_VENDOR_ID_SUPERMICRO    0x003048
 #define OSM_VENDOR_ID_HP3           0x0019BB
 #define OSM_VENDOR_ID_HP4           0x00237D
+#define OSM_VENDOR_ID_OPENIB        0x001405

 /**********/

diff --git a/opensm/osm_helper.c b/opensm/osm_helper.c
index 2597e50..0d8311b 100644
--- a/opensm/osm_helper.c
+++ b/opensm/osm_helper.c
@@ -2095,6 +2095,7 @@ const char *osm_get_manufacturer_str(IN uint64_t
guid_ho)
 	static const char *xsigo_str = "Xsigo";
 	static const char *dell_str = "Dell";
 	static const char *supermicro_str = "SuperMicro";
+	static const char *openib_str = "OpenIB";
 	static const char *unknown_str = "Unknown";

 	switch ((uint32_t) (guid_ho >> (5 * 8))) {
@@ -2153,6 +2154,8 @@ const char *osm_get_manufacturer_str(IN uint64_t
guid_ho)
 		return dell_str;
 	case OSM_VENDOR_ID_SUPERMICRO:
 		return supermicro_str;
+	case OSM_VENDOR_ID_OPENIB:
+		return openib_str;
 	default:
 		return unknown_str;
 	}
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2011-04-04 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 18:46 Hal Rosenstock [this message]
     [not found] ` <4D9A121B.3080009-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-05  6:04   ` [PATCH] opensm: Add OSM_VENDOR_ID_OPENIB support Or Gerlitz
     [not found]     ` <BANLkTim9Xj7BXKK-R=ES9eHsvUP3YXubvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-05 10:57       ` Hal Rosenstock
     [not found]         ` <4D9AF58F.3040601-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-06 11:08           ` Or Gerlitz
     [not found]             ` <4D9C49A5.6070202-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-04-06 13:18               ` Hal Rosenstock
     [not found]                 ` <4D9C6812.8060004-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-06 15:28                   ` Or Gerlitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D9A121B.3080009@dev.mellanox.co.il \
    --to=hal-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox