]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit97edec3a11cf6f73f2e45c3035b5ff8e4c3543dd
tree4231aed948a530fa6d91b9be50b072f84fdf02bf
parent74b7b490886852582d986a33443c2ffa50970169
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