* [PATCH] libibmad/dump.c: Allow 0 (extended speed active) in mad_dump_linkspeed
@ 2011-08-15 20:49 Hal Rosenstock
[not found] ` <4E498643.2070001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2011-08-15 20:49 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
for PortInfo:LinkSpeedEnabled
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/src/dump.c b/src/dump.c
index 29fb742..00831a3 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libibmad/dump.c: Allow 0 (extended speed active) in mad_dump_linkspeed
[not found] ` <4E498643.2070001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-08-18 18:01 ` Ira Weiny
0 siblings, 0 replies; 2+ messages in thread
From: Ira Weiny @ 2011-08-18 18:01 UTC (permalink / raw)
To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Mon, 15 Aug 2011 13:49:07 -0700
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>
> for PortInfo:LinkSpeedEnabled
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Thanks applied,
Ira
> ---
> diff --git a/src/dump.c b/src/dump.c
> index 29fb742..00831a3 100644
> --- a/src/dump.c
> +++ b/src/dump.c
> @@ -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;
--
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-18 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 20:49 [PATCH] libibmad/dump.c: Allow 0 (extended speed active) in mad_dump_linkspeed Hal Rosenstock
[not found] ` <4E498643.2070001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-08-18 18:01 ` Ira Weiny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox