Commit 1485d14f authored by Greg Banks's avatar Greg Banks Committed by David S. Miller

[TG3]: Count rx_discards in rx_errors.

parent 7041e3b9
...@@ -5977,7 +5977,8 @@ static struct net_device_stats *tg3_get_stats(struct net_device *dev) ...@@ -5977,7 +5977,8 @@ static struct net_device_stats *tg3_get_stats(struct net_device *dev)
get_stat64(&hw_stats->tx_octets); get_stat64(&hw_stats->tx_octets);
stats->rx_errors = old_stats->rx_errors + stats->rx_errors = old_stats->rx_errors +
get_stat64(&hw_stats->rx_errors); get_stat64(&hw_stats->rx_errors) +
get_stat64(&hw_stats->rx_discards);
stats->tx_errors = old_stats->tx_errors + stats->tx_errors = old_stats->tx_errors +
get_stat64(&hw_stats->tx_errors) + get_stat64(&hw_stats->tx_errors) +
get_stat64(&hw_stats->tx_mac_errors) + get_stat64(&hw_stats->tx_mac_errors) +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment