Message ID | 4C2744E8AD2982428C5BFE523DF8CDCB49A4740CD9@MNEXMB1.qlogic.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/infiniband-diags/src/perfquery.c b/infiniband-diags/src/perfquery.c index 00ebfff..07a9226 100644 --- a/infiniband-diags/src/perfquery.c +++ b/infiniband-diags/src/perfquery.c @@ -302,7 +302,10 @@ static void dump_perfcounters(int extended, int timeout, uint16_t cap_mask, if (aggregate) aggregate_perfcounters(); else - mad_dump_perfcounters(buf, sizeof buf, pc, sizeof pc); + mad_dump_fields(buf, sizeof buf, pc, sizeof pc, + IB_PC_FIRST_F, + (cap_mask & 0x1000)?IB_PC_LAST_F:(IB_PC_RCV_PKTS_F+1)); + } else { if (!(cap_mask & 0x200)) /* 1.2 errata: bit 9 is extended counter support */ IBWARN