[ofa-general] [PATCH] libibmad/dump.c: In mad_dump_portcapmask, decode new capabilities

Hal Rosenstock hnrose at comcast.net
Wed Sep 2 07:36:27 PDT 2009


Per published MgtWG errata
RefID 4484 - vendor specific MADs table support
RefID 4626 - reverse path PKey support in PathRecord responses
RefID 4635 - multicast FDB top support
RefID 4644 - hierarchy support

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/libibmad/src/dump.c b/libibmad/src/dump.c
index d97d359..1b287c0 100644
--- a/libibmad/src/dump.c
+++ b/libibmad/src/dump.c
@@ -2,6 +2,7 @@
  * Copyright (c) 2004-2008 Voltaire Inc.  All rights reserved.
  * Copyright (c) 2007 Xsigo Systems Inc.  All rights reserved.
  * Copyright (c) 2009 Mellanox Technologies LTD.  All rights reserved.
+ * Copyright (c) 2009 HNR Consulting.  All rights reserved.
  *
  * This software is available to you under a choice of one of two
  * licenses.  You may choose to be licensed under the terms of the GNU
@@ -519,8 +520,14 @@ void mad_dump_portcapmask(char *buf, int bufsz, void *val, int valsz)
 	if (mask & (1 << 27))
 		s += sprintf(s,
 			     "\t\t\t\tIsLinkSpeedWidthPairsTableSupported\n");
+	if (mask & (1 << 28))
+		s += sprintf(s, "\t\t\t\tIsVendorSpecificMadsTableSupported\n");
+	if (mask & (1 << 29))
+		s += sprintf(s, "\t\t\t\tIsiMcastPkeyTrapSuppressionSupported\n");
 	if (mask & (1 << 30))
 		s += sprintf(s, "\t\t\t\tIsMulticastFDBTopSupported\n");
+	if (mask & (1 << 31))
+		s += sprintf(s, "\t\t\t\tIsHierarchyInfoSupported\n");
 
 	if (s != buf)
 		*(--s) = 0;



More information about the general mailing list