diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2021-12-27 17:22:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-28 12:18:18 +0000 |
commit | 5be60a945329d82f06fc755a43eeefbfc5f77d72 (patch) | |
tree | 852c09e5edb5ef9d632c02704215c9835d3dcc29 | |
parent | 1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd (diff) |
net: lantiq_xrx200: fix statistics of received bytes
Received frames have FCS truncated. There is no need
to subtract FCS length from the statistics.
Fixes: fe1a56420cf2 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/lantiq_xrx200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/lantiq_xrx200.c b/drivers/net/ethernet/lantiq_xrx200.c index 96bd6f2b21ed..80bfaf2fec92 100644 --- a/drivers/net/ethernet/lantiq_xrx200.c +++ b/drivers/net/ethernet/lantiq_xrx200.c @@ -224,7 +224,7 @@ static int xrx200_hw_receive(struct xrx200_chan *ch) skb->protocol = eth_type_trans(skb, net_dev); netif_receive_skb(skb); net_dev->stats.rx_packets++; - net_dev->stats.rx_bytes += len - ETH_FCS_LEN; + net_dev->stats.rx_bytes += len; return 0; } |