[ofa-general] [PATCH] libibmad: add notice DataDetails fields

Sasha Khapyorsky sashak at voltaire.com
Tue Jun 5 17:04:41 PDT 2007


This adds notice DataDetails fileds - generic one (as big array)
and Trap144 specific fields.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 libibmad/include/infiniband/mad.h |    3 +++
 libibmad/src/fields.c             |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h
index f01880b..ed286a9 100644
--- a/libibmad/include/infiniband/mad.h
+++ b/libibmad/include/infiniband/mad.h
@@ -382,7 +382,10 @@ enum MAD_FIELDS {
 	IB_NOTICE_ISSUER_LID_F,
 	IB_NOTICE_TOGGLE_F,
 	IB_NOTICE_COUNT_F,
+	IB_NOTICE_DATA_DETAILS_F,
 	IB_NOTICE_DATA_LID_F,
+	IB_NOTICE_DATA_144_LID_F,
+	IB_NOTICE_DATA_144_CAPMASK_F,
 
 	/*
 	 * GS Performance
diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c
index c453e06..18dc05b 100644
--- a/libibmad/src/fields.c
+++ b/libibmad/src/fields.c
@@ -216,7 +216,10 @@ ib_field_t ib_mad_f [] = {
 	[IB_NOTICE_ISSUER_LID_F]  	{BITSOFFS(48, 16), "NoticeIssuerLID", mad_dump_uint},
 	[IB_NOTICE_TOGGLE_F]      	{BITSOFFS(64, 1), "NoticeToggle", mad_dump_uint},
 	[IB_NOTICE_COUNT_F]       	{BITSOFFS(65, 15), "NoticeCount", mad_dump_uint},
+	[IB_NOTICE_DATA_DETAILS_F]    	{80, 432, "NoticeDataDetails", mad_dump_array},
 	[IB_NOTICE_DATA_LID_F]    	{BITSOFFS(80, 16), "NoticeDataLID", mad_dump_uint},
+	[IB_NOTICE_DATA_144_LID_F]    	{BITSOFFS(96, 16), "NoticeDataTrap144LID", mad_dump_uint},
+	[IB_NOTICE_DATA_144_CAPMASK_F]  {BITSOFFS(128, 32), "NoticeDataTrap144CapMask", mad_dump_uint},
 
 	/*
 	 * NodeDescription fields:
-- 
1.5.2.136.g322bc




More information about the general mailing list