diff mbox

[infiniband-diags,1/6] ibdiag_common.c: In is_port_info_extended_supported, query PortInfo for port, 0 when node is a switch for HDR support

Message ID 94344ecd-c036-9927-b3a5-e21201de03ec@dev.mellanox.co.il (mailing list archive)
State Accepted, archived
Delegated to: Ira Weiny
Headers show

Commit Message

Hal Rosenstock Nov. 28, 2017, 10:11 p.m. UTC
Per MgtWG comment #9363

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 libibmad/src/dump.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/libibmad/src/dump.c b/libibmad/src/dump.c
index 2244f38..1f41e62 100644
--- a/libibmad/src/dump.c
+++ b/libibmad/src/dump.c
@@ -632,6 +632,8 @@  void mad_dump_portcapmask2(char *buf, int bufsz, void *val, int valsz)
 		s += sprintf(s, "\t\t\t\tIsSwitchPortStateTableSupported\n");
 	if (mask & (1 << 4))
 		s += sprintf(s, "\t\t\t\tIsLinkWidth2xSupported\n");
+	if (mask & (1 << 5))
+		s += sprintf(s, "\t\t\t\tIsLinkSpeedHDRSupported\n");
 
 	if (s != buf)
 		*(--s) = 0;