***SPAM*** Re: [ofa-general] [PATCH v2 1/2] libibmad add PortXmitWait and CounterSelect2 to fields.

Eli Dorfman (Voltaire) dorfman.eli at gmail.com
Tue Jan 13 06:31:42 PST 2009


 add PortXmitWait counter to fields.
 add CounterSelect2 to fields to allow reset of PortXmitWait(MgtWg comment#4527)

Signed-off-by: Eli Dorfman <elid at voltaire.com>
---
 libibmad/include/infiniband/mad.h |    2 ++
 libibmad/src/fields.c             |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h
index 89b4be5..0a962c0 100644
--- a/libibmad/include/infiniband/mad.h
+++ b/libibmad/include/infiniband/mad.h
@@ -411,6 +411,7 @@ enum MAD_FIELDS {
 	IB_PC_XMT_DISCARDS_F,
 	IB_PC_ERR_XMTCONSTR_F,
 	IB_PC_ERR_RCVCONSTR_F,
+	IB_PC_COUNTER_SELECT2_F,
 	IB_PC_ERR_LOCALINTEG_F,
 	IB_PC_ERR_EXCESS_OVR_F,
 	IB_PC_VL15_DROPPED_F,
@@ -418,6 +419,7 @@ enum MAD_FIELDS {
 	IB_PC_RCV_BYTES_F,
 	IB_PC_XMT_PKTS_F,
 	IB_PC_RCV_PKTS_F,
+	IB_PC_XMT_WAIT_F,
 	IB_PC_LAST_F,
 
 	/*
diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c
index 50611c5..5cebd01 100644
--- a/libibmad/src/fields.c
+++ b/libibmad/src/fields.c
@@ -239,6 +239,7 @@ static const ib_field_t ib_mad_f [] = {
 	[IB_PC_XMT_DISCARDS_F] 		{BITSOFFS(112, 16), "XmtDiscards", mad_dump_uint},
 	[IB_PC_ERR_XMTCONSTR_F] 	{BITSOFFS(128, 8), "XmtConstraintErrors", mad_dump_uint},
 	[IB_PC_ERR_RCVCONSTR_F] 	{BITSOFFS(136, 8), "RcvConstraintErrors", mad_dump_uint},
+	[IB_PC_COUNTER_SELECT2_F]	{BITSOFFS(144, 8), "CounterSelect2", mad_dump_uint},
 	[IB_PC_ERR_LOCALINTEG_F] 	{BITSOFFS(152, 4), "LinkIntegrityErrors", mad_dump_uint},
 	[IB_PC_ERR_EXCESS_OVR_F] 	{BITSOFFS(156, 4), "ExcBufOverrunErrors", mad_dump_uint},
 	[IB_PC_VL15_DROPPED_F] 		{BITSOFFS(176, 16), "VL15Dropped", mad_dump_uint},
@@ -246,6 +247,7 @@ static const ib_field_t ib_mad_f [] = {
 	[IB_PC_RCV_BYTES_F] 		{224, 32, "RcvData", mad_dump_uint},
 	[IB_PC_XMT_PKTS_F] 		{256, 32, "XmtPkts", mad_dump_uint},
 	[IB_PC_RCV_PKTS_F] 		{288, 32, "RcvPkts", mad_dump_uint},
+	[IB_PC_XMT_WAIT_F] 		{320, 32, "XmtWait", mad_dump_uint},
 
 	/*
 	 * SMInfo
-- 
1.5.5




More information about the general mailing list