aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/usb/usb_8dev.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2021-01-11 14:19:26 +0000
committerMarc Kleine-Budde <[email protected]>2021-01-14 07:43:42 +0000
commitf0ef72febc9a6a569d92cdf6c7996015dfa8e8bb (patch)
tree40fbc46bccc61acf0bee154a2ad645a52451fa9c /drivers/net/can/usb/usb_8dev.c
parentcan: length: can_skb_get_frame_len(): introduce function to get data length o... (diff)
downloadkernel-f0ef72febc9a6a569d92cdf6c7996015dfa8e8bb.tar.gz
kernel-f0ef72febc9a6a569d92cdf6c7996015dfa8e8bb.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/can/usb/usb_8dev.c')
0 files changed, 0 insertions, 0 deletions