]> git.baikalelectronics.ru Git - kernel.git/commit
can: uapi: introduce CANFD_FDF flag for mixed content in struct canfd_frame
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 11 Apr 2017 13:43:43 +0000 (15:43 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 May 2021 07:42:21 +0000 (09:42 +0200)
commitb5f7f1b733a4ec8b68ad958580f8b3e78f532e26
tree51c10f14227c19228ad727b55840392669a2b8ae
parent8f59ee715de6f5df40b5f438b70e65a61097f8c9
can: uapi: introduce CANFD_FDF flag for mixed content in struct canfd_frame

The struct can_frame and struct canfd_frame intentionally share the
same layout to be able to write CAN frame content into a CAN FD frame
structure. When this is done the former differentiation via CAN_MTU /
CANFD_MTU is lost. CANFD_FDF allows programmers to mark CAN FD frames
in the case of using struct canfd_frame for mixed CAN/CAN FD
content (dual use).

N.B. the Kernel APIs do NOT provide mixed CAN / CAN FD content inside
of struct canfd_frame therefore the CANFD_FDF flag is disregarded by
Linux.

Link: https://lore.kernel.org/r/20170411134343.3089-1-socketcan@hartkopp.net
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can.h