aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-06-01 07:21:05 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-02 05:21:10 -0400
commitd188ceeb3dcc6766db34021b36371a14c21ebd74 (patch)
tree8a857594a488b6f80e8a9c0bd028ee47449a46ba /drivers/net/sfc
parent62b330baede3849897ce7fc5534eadc34cd03a51 (diff)
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 <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index aae33471029a..26b0cc219204 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)
1518 stats->tx_window_errors = mac_stats->tx_late_collision; 1518 stats->tx_window_errors = mac_stats->tx_late_collision;
1519 1519
1520 stats->rx_errors = (stats->rx_length_errors + 1520 stats->rx_errors = (stats->rx_length_errors +
1521 stats->rx_over_errors +
1522 stats->rx_crc_errors + 1521 stats->rx_crc_errors +
1523 stats->rx_frame_errors + 1522 stats->rx_frame_errors +
1524 stats->rx_fifo_errors +
1525 stats->rx_missed_errors +
1526 mac_stats->rx_symbol_error); 1523 mac_stats->rx_symbol_error);
1527 stats->tx_errors = (stats->tx_window_errors + 1524 stats->tx_errors = (stats->tx_window_errors +
1528 mac_stats->tx_bad); 1525 mac_stats->tx_bad);