[ofa-general] [PATCH] libibmad: Initial changes for congestion management class

Hal Rosenstock hrosenstock at xsigo.com
Mon Jul 7 14:10:25 PDT 2008


libibmad: Initial changes for congestion management class

Signed-off-by: Hal Rosenstock <hal at xsigo.com>

diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h
index b12cd6b..c2ad148 100644
--- a/libibmad/include/infiniband/mad.h
+++ b/libibmad/include/infiniband/mad.h
@@ -81,6 +81,7 @@ enum MAD_CLASSES {
 	IB_SNMP_CLASS =		0x8,
 	IB_VENDOR_RANGE1_START_CLASS = 0x9,
 	IB_VENDOR_RANGE1_END_CLASS = 0x0f,
+	IB_CC_CLASS =		0x21,
 	IB_VENDOR_RANGE2_START_CLASS = 0x30,
 	IB_VENDOR_RANGE2_END_CLASS = 0x4f,
 };
diff --git a/libibmad/src/register.c b/libibmad/src/register.c
index 1698f05..a33acd8 100644
--- a/libibmad/src/register.c
+++ b/libibmad/src/register.c
@@ -97,6 +97,8 @@ mgmt_class_vers(int mgmt_class)
 			return 1;
 		case IB_DEVICE_MGMT_CLASS:
 			return 1;
+		case IB_CC_CLASS:
+			return 2;
 	}
 
 	return 0;





More information about the general mailing list