diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-11 15:19:26 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-14 08:43:42 +0100 |
commit | f0ef72febc9a6a569d92cdf6c7996015dfa8e8bb (patch) | |
tree | 40fbc46bccc61acf0bee154a2ad645a52451fa9c /drivers/zorro | |
parent | 85d99c3e2a13d542445342a1383a686dadeaac3d (diff) | |
download | linux-f0ef72febc9a6a569d92cdf6c7996015dfa8e8bb.tar.bz2 |
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>
Diffstat (limited to 'drivers/zorro')
0 files changed, 0 insertions, 0 deletions