From: Wolfgang Steinwender Date: Fri, 10 Apr 2015 09:42:56 +0000 (+0200) Subject: net/macb: sqe_test_errors are TX errors, not RX errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=716723c2d2f0d5af9911966fb3cd8ccd33480d63;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/macb: sqe_test_errors are TX errors, not RX errors The statistics are grouped by TX and RX errors. The SQE Test Errors Register indicates problems with TX. Signed-off-by: Wolfgang Steinwender Acked-by: Nicolas Ferre Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 448a32309dd0..9f5387249f24 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -1956,12 +1956,12 @@ static struct net_device_stats *macb_get_stats(struct net_device *dev) hwstat->rx_oversize_pkts + hwstat->rx_jabbers + hwstat->rx_undersize_pkts + - hwstat->sqe_test_errors + hwstat->rx_length_mismatch); nstat->tx_errors = (hwstat->tx_late_cols + hwstat->tx_excessive_cols + hwstat->tx_underruns + - hwstat->tx_carrier_errors); + hwstat->tx_carrier_errors + + hwstat->sqe_test_errors); nstat->collisions = (hwstat->tx_single_cols + hwstat->tx_multiple_cols + hwstat->tx_excessive_cols);