[openib-general] [PATCH] ib_mad.h: Add IB_MGMT_MAX_METHODS definition
Hal Rosenstock
halr at voltaire.com
Fri Sep 3 09:43:28 PDT 2004
Add IB_MGMT_MAX_METHODS definition to ib_mad.h
Index: ib_mad.h
===================================================================
--- ib_mad.h (revision 733)
+++ ib_mad.h (working copy)
@@ -38,6 +38,8 @@
#define IB_MGMT_CLASS_CM 0x07
#define IB_MGMT_CLASS_SNMP 0x08
+#define IB_MGMT_MAX_METHODS 128
+
#define IB_QP0 0
#define IB_QP1 cpu_to_be32(1)
#define IB_QP1_QKEY cpu_to_be32(0x80010000)
@@ -220,7 +222,7 @@
struct ib_mad_reg_req {
u8 mgmt_class;
u8 mgmt_class_version;
- DECLARE_BITMAP(method_mask, 128);
+ DECLARE_BITMAP(method_mask, IB_MGMT_MAX_METHODS);
};
/**
More information about the general
mailing list