]> git.baikalelectronics.ru Git - kernel.git/commit
can: canxl: update CAN infrastructure for CAN XL frames
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 12 Sep 2022 17:07:23 +0000 (19:07 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 15 Sep 2022 07:08:09 +0000 (09:08 +0200)
commit4ca6c9f64162c29f54d47206f418dbdce385b479
tree56d3c61f52a39ff9c574ed18da0edbdb5a81b6d9
parent072d5fb16ae9f7e5b942f31c7d5174eb2a2288f7
can: canxl: update CAN infrastructure for CAN XL frames

- add new ETH_P_CANXL ethernet protocol type
- update skb checks for CAN XL
- add alloc_canxl_skb() which now needs a data length parameter
- introduce init_can_skb_reserve() to reduce code duplication

Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20220912170725.120748-6-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/skb.c
include/linux/can/skb.h
include/uapi/linux/if_ether.h
net/can/af_can.c