]> git.baikalelectronics.ru Git - kernel.git/commit
can: dev: can_rx_offload_get_echo_skb(): extend to return can frame length
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Jan 2021 14:19:29 +0000 (15:19 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 14 Jan 2021 07:43:43 +0000 (08:43 +0100)
commit1adc82ab54402e6a8fbdd78f8d56193dae62def9
tree121d3ded8abe6b811ad89cb0207fb79ca048a887
parent9b1be6796fa2f3916531bc7597faa9d12e31e396
can: dev: can_rx_offload_get_echo_skb(): extend to return 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 can_rx_offload_get_echo_skb()
to return that value. Convert all users of this function, too.

Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20210111141930.693847-15-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/rx-offload.c
drivers/net/can/flexcan.c
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
drivers/net/can/ti_hecc.c
include/linux/can/rx-offload.h