On 17.03.2021 17:52:23, Vincent Mailhol wrote: > CAN error skb is an interface specific to socket CAN. The CAN error > skb does not correspond to any actual CAN frame sent on the wire. Only > an error flag is transmitted when an error occurs (c.f. ISO 11898-1 > section 10.4.4.2 "Error flag"). > > For this reason, it makes no sense to increment the rx_packets and > rx_bytes fields of struct net_device_stats. I think we increment the rx packets and bytes (more or less consistently) in all drivers for CAN error skbs. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature