diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2011-04-21 04:43:43 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-05-07 06:15:45 -0400 |
commit | 58f6bcf96e95f042a2bee6ace238365cb8fb1ce6 (patch) | |
tree | 7b4d1fb7e77edde1bc60c95e4c215fb686cfe2ad /drivers/net/ixgbe/ixgbe_ethtool.c | |
parent | 67a74ee2a24957012661dc4400e4f8e363d25fbb (diff) |
ixgbe: add ethtool counters for OS2BMC
OS2BMC registers are available for X540.
This patch adds ethtool counters based on those registers.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Evan Swanson <evan.swanson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 545b231b2a74..1fdd075afe79 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -102,6 +102,10 @@ static struct ixgbe_stats ixgbe_gstrings_stats[] = { | |||
102 | {"alloc_rx_page_failed", IXGBE_STAT(alloc_rx_page_failed)}, | 102 | {"alloc_rx_page_failed", IXGBE_STAT(alloc_rx_page_failed)}, |
103 | {"alloc_rx_buff_failed", IXGBE_STAT(alloc_rx_buff_failed)}, | 103 | {"alloc_rx_buff_failed", IXGBE_STAT(alloc_rx_buff_failed)}, |
104 | {"rx_no_dma_resources", IXGBE_STAT(hw_rx_no_dma_resources)}, | 104 | {"rx_no_dma_resources", IXGBE_STAT(hw_rx_no_dma_resources)}, |
105 | {"os2bmc_rx_by_bmc", IXGBE_STAT(stats.o2bgptc)}, | ||
106 | {"os2bmc_tx_by_bmc", IXGBE_STAT(stats.b2ospc)}, | ||
107 | {"os2bmc_tx_by_host", IXGBE_STAT(stats.o2bspc)}, | ||
108 | {"os2bmc_rx_by_host", IXGBE_STAT(stats.b2ogprc)}, | ||
105 | #ifdef IXGBE_FCOE | 109 | #ifdef IXGBE_FCOE |
106 | {"fcoe_bad_fccrc", IXGBE_STAT(stats.fccrc)}, | 110 | {"fcoe_bad_fccrc", IXGBE_STAT(stats.fccrc)}, |
107 | {"rx_fcoe_dropped", IXGBE_STAT(stats.fcoerpdc)}, | 111 | {"rx_fcoe_dropped", IXGBE_STAT(stats.fcoerpdc)}, |