Skip to content

Commit 5be60a9

Browse files
abajkdavem330
authored andcommitted
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: fe1a564 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver") Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1cd5384 commit 5be60a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/lantiq_xrx200.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int xrx200_hw_receive(struct xrx200_chan *ch)
224224
skb->protocol = eth_type_trans(skb, net_dev);
225225
netif_receive_skb(skb);
226226
net_dev->stats.rx_packets++;
227-
net_dev->stats.rx_bytes += len - ETH_FCS_LEN;
227+
net_dev->stats.rx_bytes += len;
228228

229229
return 0;
230230
}

0 commit comments

Comments
 (0)