From: Ben Hutchings Date: Tue, 1 Jun 2010 11:21:05 +0000 (+0000) Subject: sfc: Only count bad packets in rx_errors X-Git-Tag: v2.6.36-rc1~571^2~695 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=d188ceeb3dcc6766db34021b36371a14c21ebd74;p=net-next-2.6.git sfc: Only count bad packets in rx_errors rx_errors is defined as 'bad packets received', but we are currently including various overflow errors as well. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index aae33471029..26b0cc21920 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -1518,11 +1518,8 @@ static struct net_device_stats *efx_net_stats(struct net_device *net_dev) stats->tx_window_errors = mac_stats->tx_late_collision; stats->rx_errors = (stats->rx_length_errors + - stats->rx_over_errors + stats->rx_crc_errors + stats->rx_frame_errors + - stats->rx_fifo_errors + - stats->rx_missed_errors + mac_stats->rx_symbol_error); stats->tx_errors = (stats->tx_window_errors + mac_stats->tx_bad);