OpenCloudOS-Kernel/drivers/net/can
Marc Kleine-Budde f0ef72febc can: dev: extend struct can_skb_priv to hold CAN frame length
In order to implement byte queue limits (bql) in CAN drivers, the length of the
CAN frame needs to be passed into the networking stack after queueing and after
transmission completion.

To avoid to calculate this length twice, extend the struct can_skb_priv to hold
the length of the CAN frame and extend __can_get_echo_skb() to return that
value.

Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20210111141930.693847-12-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2021-01-14 08:43:42 +01:00
..
c_can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
cc770 can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
dev can: dev: extend struct can_skb_priv to hold CAN frame length 2021-01-14 08:43:42 +01:00
ifi_canfd can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
m_can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-01-08 13:28:00 -08:00
mscan can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
peak_canfd can: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00
rcar can: rcar: Kconfig: update help description for CAN_RCAR config 2021-01-07 11:02:10 +01:00
sja1000 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
softing Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
spi can: mcp251xfd: mcp251xfd_handle_rxif_ring(): first increment RX tail pointer in HW, then in driver 2021-01-07 11:02:09 +01:00
usb can: pcan_usb_core: fix fall-through warnings for Clang 2020-11-29 21:19:11 +01:00
Kconfig can: kvaser_pciefd: select CONFIG_CRC32 2021-01-05 15:50:36 -08:00
Makefile can: dev: move driver related infrastructure into separate subdir 2021-01-13 09:42:58 +01:00
at91_can.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
flexcan.c can: flexcan: add CAN wakeup function for i.MX8QM 2021-01-06 15:20:13 +01:00
grcan.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
janz-ican3.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +01:00
kvaser_pciefd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pch_can.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
ti_hecc.c can: replace can_dlc as variable/element for payload length 2020-11-20 12:04:12 +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: rename CAN FD related can_len2dlc and can_dlc2len helpers 2020-11-20 12:05:14 +01:00