]> git.baikalelectronics.ru Git - kernel.git/commit
can: enable CAN FD for virtual CAN devices by default
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 2 Jun 2017 17:37:30 +0000 (19:37 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Jun 2017 12:39:02 +0000 (14:39 +0200)
commit0b4d19b634484711424296296c4af937c10a173b
tree4231aed948a530fa6d91b9be50b072f84fdf02bf
parent2f78a72423d94750a24a7ebddb038b31af5e77cb
can: enable CAN FD for virtual CAN devices by default

CAN FD capable CAN interfaces can handle (classic) CAN 2.0 frames too.
New users usually fail at their first attempt to explore CAN FD on
virtual CAN interfaces due to the current CAN_MTU default.

Set the MTU to CANFD_MTU by default to reduce this confusion.
If someone *really* needs a 'classic CAN'-only device this can be set
with the 'ip' tool with e.g. 'ip link set vcan0 mtu 16' as before.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/vcan.c
drivers/net/can/vxcan.c