diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2013-10-03 16:16:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-09 15:50:51 -0400 |
commit | 461ae37922ccc224b20c7cf20314eb4166d2494a (patch) | |
tree | a984bb6f5e0cb9e3281c65cbdd6acfa06d85317e /drivers/net/ethernet/emulex/benet/be_ethtool.c | |
parent | 61000861e860baf5f21b8d2bcd784810bfb0ad06 (diff) | |
download | op-kernel-dev-461ae37922ccc224b20c7cf20314eb4166d2494a.zip op-kernel-dev-461ae37922ccc224b20c7cf20314eb4166d2494a.tar.gz |
be2net: Display RoCE specific counters in ethtool -S
SkyHawk-R can support RoCE. Add code to display RoCE specific
counters maintained in hardware.
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index 3dcf817..0833003 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c @@ -116,7 +116,12 @@ static const struct be_ethtool_stat et_stats[] = { {DRVSTAT_INFO(rx_drops_mtu)}, /* Number of packets dropped due to random early drop function */ {DRVSTAT_INFO(eth_red_drops)}, - {DRVSTAT_INFO(be_on_die_temperature)} + {DRVSTAT_INFO(be_on_die_temperature)}, + {DRVSTAT_INFO(rx_roce_bytes_lsd)}, + {DRVSTAT_INFO(rx_roce_bytes_msd)}, + {DRVSTAT_INFO(rx_roce_frames)}, + {DRVSTAT_INFO(roce_drops_payload_len)}, + {DRVSTAT_INFO(roce_drops_crc)} }; #define ETHTOOL_STATS_NUM ARRAY_SIZE(et_stats) |