Skip to contentSkip to conversation

libibmad/dump.c: Allow 0 (extended speed active) in mad_dump_linkspeed

PATCH Applied Hal Rosenstock 2 participants 2 messages Aug 15, 2011 – Aug 18, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libibmad/dump.c: Allow 0 (extended speed active) in mad_dump_linkspeed

for PortInfo:LinkSpeedEnabled

---

src/dump.c +3 -0
index 29fb742..00831a3 100644
@@ -244,6 +244,9 @@ void mad_dump_linkspeed(char *buf, int bufsz, void *val, int valsz)
 	int speed = *(int *)val;
 
 	switch (speed) {
+	case 0:
+		snprintf(buf, bufsz, "Extended speed");
+		break;
 	case 1:
 		snprintf(buf, bufsz, "2.5 Gbps");
 		break;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · On Mon, 15 Aug 2011 13:49:07 -0700 Hal Rosenstock…

for PortInfo:LinkSpeedEnabled

Thanks applied,
Ira

Quoted 15 lines

---

src/dump.c +3 -0
index 29fb742..00831a3 100644
@@ -244,6 +244,9 @@ void mad_dump_linkspeed(char *buf, int bufsz, void *val, int valsz)
 	int speed = *(int *)val;
 
 	switch (speed) {
+	case 0:
+		snprintf(buf, bufsz, "Extended speed");
+		break;
 	case 1:
 		snprintf(buf, bufsz, "2.5 Gbps");
 		break;
Signature · 9 lines
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html