mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 03:40:04 +00:00
net: lantiq_xrx200: fix statistics of received bytes
[ Upstream commit5be60a9453
] Received frames have FCS truncated. There is no need to subtract FCS length from the statistics. Fixes:fe1a56420c
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3477f4b67e
commit
44cd64aa1c
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue