mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
1431fb31ec
commit
fb6e0883f2
1 changed files with 4 additions and 0 deletions
|
@ -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_TEST_LEN (sizeof(ql_gstrings_test) / ETH_GSTRING_LEN)
|
||||||
#define QLGE_STATS_LEN ARRAY_SIZE(ql_gstrings_stats)
|
#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)
|
static int ql_update_ring_coalescing(struct ql_adapter *qdev)
|
||||||
{
|
{
|
||||||
|
@ -280,6 +281,9 @@ static void ql_update_stats(struct ql_adapter *qdev)
|
||||||
iter++;
|
iter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Update receive mac error statistics */
|
||||||
|
iter += QLGE_RCV_MAC_ERR_STATS;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get Per-priority TX pause frame counter statistics.
|
* Get Per-priority TX pause frame counter statistics.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue