linux/drivers/net/can
Vincent Mailhol 0b0ce2c677 can: kvaser_usb: do not increase tx statistics when sending error message frames
The CAN error message frames (i.e. error skb) are an interface
specific to socket CAN. The payload of the CAN error message frames
does not correspond to any actual data sent on the wire. Only an error
flag and a delimiter are 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 tx_packets and
tx_bytes fields of struct net_device_stats when sending an error
message frame because no actual payload will be transmitted on the
wire.

N.B. Sending error message frames is a very specific feature which, at
the moment, is only supported by the Kvaser Hydra hardware. Please
refer to [1] for more details on the topic.

[1] https://lore.kernel.org/linux-can/CAMZ6RqK0rTNg3u3mBpZOoY51jLZ-et-J01tY6-+mWsM4meVw-A@mail.gmail.com/t/#u

Link: https://lore.kernel.org/all/20211207121531.42941-3-mailhol.vincent@wanadoo.fr
Co-developed-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
History 2022-01-05 12:09:05 +01:00
..
c_can can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
cc770 can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
dev can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
ifi_canfd can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
m_can can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
mscan can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
peak_canfd can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
rcar can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
sja1000 can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
softing can: softing: Remove redundant variable ptr 2021-05-27 09:42:22 +02:00
spi can: mcp251x: mcp251x_gpio_setup(): Get rid of duplicate of_node assignment 2022-01-05 10:13:50 +01:00
usb can: kvaser_usb: do not increase tx statistics when sending error message frames 2022-01-05 12:09:05 +01:00
at91_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
flexcan.c can: flexcan: Use struct_group() to zero struct flexcan_regs regions 2021-09-25 08:20:48 -07:00
grcan.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
janz-ican3.c can: at91/janz-ican3: replace snprintf() in show functions with sysfs_emit() 2021-10-24 16:25:42 +02:00
Kconfig can: flexcan: update Kconfig to enable coldfire 2021-07-25 11:36:29 +02:00
kvaser_pciefd.c can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile can: dev: move driver related infrastructure into separate subdir 2021-01-13 09:42:58 +01:00
pch_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
slcan.c tty: remove file from tty_mode_ioctl 2021-09-22 16:59:13 +02:00
sun4i_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00
ti_hecc.c can: ti_hecc: ti_hecc_probe(): use platform_get_irq() to get the interrupt 2022-01-05 12:08:19 +01:00
vcan.c net: introduce CAN specific pointer in the struct net_device 2021-02-24 14:32:15 -08:00
vxcan.c net: introduce CAN specific pointer in the struct net_device 2021-02-24 14:32:15 -08:00
xilinx_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2022-01-05 12:09:05 +01:00