linux/drivers/net/can
Vincent Mailhol 1dcb6e57db can: dev: can_put_echo_skb(): extend to handle frame_len
Add a frame_len argument to can_put_echo_skb() which is used to save length of
the CAN frame into field frame_len of struct can_skb_priv so that it can be
later used after transmission completion. Convert all users of this function,
too.

Drivers which implement BQL call can_put_echo_skb() with the output of
can_skb_get_frame_len(skb) and drivers which do not simply pass zero as an
input (in the same way that NULL would be given to can_get_echo_skb()). This
way, we have a nice symmetry between the two echo functions.

Link: https://lore.kernel.org/r/20210111061335.39983-1-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20210111141930.693847-13-mkl@pengutronix.de
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
2021-01-14 08:43:43 +01:00
..
c_can can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
cc770 can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
dev can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
ifi_canfd can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
m_can can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
mscan can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
peak_canfd can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
rcar can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
sja1000 can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
softing can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
spi can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
usb can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
at91_can.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
flexcan.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
grcan.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
janz-ican3.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
Kconfig can: kvaser_pciefd: select CONFIG_CRC32 2021-01-05 15:50:36 -08:00
kvaser_pciefd.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +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: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
slcan.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
sun4i_can.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
ti_hecc.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00
vcan.c can: make use of preallocated can_ml_priv for per device struct can_dev_rcv_lists 2019-09-04 13:29:15 +02:00
vxcan.c treewide: rename nla_strlcpy to nla_strscpy. 2020-11-16 08:08:54 -08:00
xilinx_can.c can: dev: can_put_echo_skb(): extend to handle frame_len 2021-01-14 08:43:43 +01:00