aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_common.h
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2008-01-07 00:02:34 -0500
committerRoland Dreier <rolandd@cisco.com>2008-01-25 17:15:38 -0500
commit3029fcc3d44530601f19fd8f551ac195d3a918d7 (patch)
treedf486443f140a8d47fab8bda9552744c3201b865 /drivers/infiniband/hw/ipath/ipath_common.h
parent6c719cae0b91f577738dfb4007baee28f03e48a5 (diff)
IB/ipath: Export hardware counters more consistently
Various hardware counters are exported via the ipath file system (since it is binary data). The old file format was very dependent on the HW offsets for these registers. Newer HCA chips can have different counters at different offsets. This patch adds a level of indirection to make the file format consistent across HCAs. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_common.h')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_common.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_common.h b/drivers/infiniband/hw/ipath/ipath_common.h
index 851df8a75e79..aa780e7f2418 100644
--- a/drivers/infiniband/hw/ipath/ipath_common.h
+++ b/drivers/infiniband/hw/ipath/ipath_common.h
@@ -579,7 +579,7 @@ struct ipath_flash {
579struct infinipath_counters { 579struct infinipath_counters {
580 __u64 LBIntCnt; 580 __u64 LBIntCnt;
581 __u64 LBFlowStallCnt; 581 __u64 LBFlowStallCnt;
582 __u64 Reserved1; 582 __u64 TxSDmaDescCnt; /* was Reserved1 */
583 __u64 TxUnsupVLErrCnt; 583 __u64 TxUnsupVLErrCnt;
584 __u64 TxDataPktCnt; 584 __u64 TxDataPktCnt;
585 __u64 TxFlowPktCnt; 585 __u64 TxFlowPktCnt;
@@ -615,12 +615,26 @@ struct infinipath_counters {
615 __u64 RxP6HdrEgrOvflCnt; 615 __u64 RxP6HdrEgrOvflCnt;
616 __u64 RxP7HdrEgrOvflCnt; 616 __u64 RxP7HdrEgrOvflCnt;
617 __u64 RxP8HdrEgrOvflCnt; 617 __u64 RxP8HdrEgrOvflCnt;
618 __u64 Reserved6; 618 __u64 RxP9HdrEgrOvflCnt; /* was Reserved6 */
619 __u64 Reserved7; 619 __u64 RxP10HdrEgrOvflCnt; /* was Reserved7 */
620 __u64 RxP11HdrEgrOvflCnt; /* new for IBA7220 */
621 __u64 RxP12HdrEgrOvflCnt; /* new for IBA7220 */
622 __u64 RxP13HdrEgrOvflCnt; /* new for IBA7220 */
623 __u64 RxP14HdrEgrOvflCnt; /* new for IBA7220 */
624 __u64 RxP15HdrEgrOvflCnt; /* new for IBA7220 */
625 __u64 RxP16HdrEgrOvflCnt; /* new for IBA7220 */
620 __u64 IBStatusChangeCnt; 626 __u64 IBStatusChangeCnt;
621 __u64 IBLinkErrRecoveryCnt; 627 __u64 IBLinkErrRecoveryCnt;
622 __u64 IBLinkDownedCnt; 628 __u64 IBLinkDownedCnt;
623 __u64 IBSymbolErrCnt; 629 __u64 IBSymbolErrCnt;
630 /* The following are new for IBA7220 */
631 __u64 RxVL15DroppedPktCnt;
632 __u64 RxOtherLocalPhyErrCnt;
633 __u64 PcieRetryBufDiagQwordCnt;
634 __u64 ExcessBufferOvflCnt;
635 __u64 LocalLinkIntegrityErrCnt;
636 __u64 RxVlErrCnt;
637 __u64 RxDlidFltrCnt;
624}; 638};
625 639
626/* 640/*