diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-02-08 11:31:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-08 23:11:26 +0300 |
commit | e0a76606d6f0dfdb0954ddb2da2c8809329054d6 (patch) | |
tree | d51d0c3e7f507e4499937cbd774a0a9fa4eee7f5 /drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | |
parent | 662ec2b7e842c0bb1ef482060497c44afa3f1037 (diff) | |
download | linux-e0a76606d6f0dfdb0954ddb2da2c8809329054d6.tar.xz |
net: stmmac: rename rx_crc to rx_crc_errors
The ethtool stat counter rx_crc from stmmac is mis-named, the name
seems to speak about the number of RX CRC done, but in fact it is about
errors.
This patch rename it to rx_crc_errors, just like the same ifconfig
counter.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c index 8816515e1bbb..843ec69222ea 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c @@ -103,7 +103,7 @@ static int dwmac4_wrback_get_rx_status(void *data, struct stmmac_extra_stats *x, x->rx_mii++; if (unlikely(rdes3 & RDES3_CRC_ERROR)) { - x->rx_crc++; + x->rx_crc_errors++; stats->rx_crc_errors++; } |