aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/ifi_canfd
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2021-01-11 15:19:25 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-01-14 08:43:42 +0100
commit85d99c3e2a13d542445342a1383a686dadeaac3d (patch)
tree42706b247155123be6686f480f3ceb23315ce647 /drivers/net/can/ifi_canfd
parentcan: length: canfd_sanitize_len(): add function to sanitize CAN-FD data length (diff)
downloadlinux-dev-85d99c3e2a13d542445342a1383a686dadeaac3d.tar.xz
linux-dev-85d99c3e2a13d542445342a1383a686dadeaac3d.zip
can: length: can_skb_get_frame_len(): introduce function to get data length of frame in data link layer
This patch adds the function can_skb_get_frame_len() which returns the length of a CAN frame on the data link layer, including Start-of-frame, Identifier, various other bits, the actual data, the CRC, the End-of-frame, the Inter frame spacing. Co-developed-by: Arunachalam Santhanam <arunachalam.santhanam@in.bosch.com> Signed-off-by: Arunachalam Santhanam <arunachalam.santhanam@in.bosch.com> Co-developed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Co-developed-by: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://lore.kernel.org/r/20210111141930.693847-11-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/ifi_canfd')
0 files changed, 0 insertions, 0 deletions