net/macb: sqe_test_errors are TX errors, not RX errors
authorWolfgang Steinwender <wsteinwender@pcs.com>
Fri, 10 Apr 2015 09:42:56 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Apr 2015 00:42:29 +0000 (20:42 -0400)
The statistics are grouped by TX and RX errors.
The SQE Test Errors Register indicates problems with TX.

Signed-off-by: Wolfgang Steinwender <wsteinwender@pcs.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c

index 448a32309dd08c79c99bca7692fea10d429c1b41..9f5387249f242374437581e6c2df7c037917f83a 100644 (file)
@@ -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);