Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wsteinwender@pcs.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wolfgang Steinwender and committed by
David S. Miller
716723c2 5288ec15

+2 -2
+2 -2
drivers/net/ethernet/cadence/macb.c
··· 1956 1956 hwstat->rx_oversize_pkts + 1957 1957 hwstat->rx_jabbers + 1958 1958 hwstat->rx_undersize_pkts + 1959 - hwstat->sqe_test_errors + 1960 1959 hwstat->rx_length_mismatch); 1961 1960 nstat->tx_errors = (hwstat->tx_late_cols + 1962 1961 hwstat->tx_excessive_cols + 1963 1962 hwstat->tx_underruns + 1964 - hwstat->tx_carrier_errors); 1963 + hwstat->tx_carrier_errors + 1964 + hwstat->sqe_test_errors); 1965 1965 nstat->collisions = (hwstat->tx_single_cols + 1966 1966 hwstat->tx_multiple_cols + 1967 1967 hwstat->tx_excessive_cols);