diff options
author | Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> | 2013-12-05 18:11:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-05 20:33:46 -0500 |
commit | fb6e0883f2e7ee2c2330a12bac3604c79a97f35e (patch) | |
tree | d162e00ed3fde411c2a00ba86559a7db5235ecac /drivers/net/ethernet/qlogic | |
parent | 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 (diff) | |
download | linux-fb6e0883f2e7ee2c2330a12bac3604c79a97f35e.tar.bz2 |
qlge: Fix ethtool statistics
o Receive mac error stat was getting overwritten by other stats.
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c b/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c index 0780e039b271..8dee1beb9854 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c @@ -181,6 +181,7 @@ static const char ql_gstrings_test[][ETH_GSTRING_LEN] = { }; #define QLGE_TEST_LEN (sizeof(ql_gstrings_test) / ETH_GSTRING_LEN) #define QLGE_STATS_LEN ARRAY_SIZE(ql_gstrings_stats) +#define QLGE_RCV_MAC_ERR_STATS 7 static int ql_update_ring_coalescing(struct ql_adapter *qdev) { @@ -280,6 +281,9 @@ static void ql_update_stats(struct ql_adapter *qdev) iter++; } + /* Update receive mac error statistics */ + iter += QLGE_RCV_MAC_ERR_STATS; + /* * Get Per-priority TX pause frame counter statistics. */ |