History

can: allow to change the device mtu for CAN FD capable devices

The configuration for CAN FD depends on CAN_CTRLMODE_FD enabled in the driver specific ctrlmode_supported capabilities. The configuration can be done either with the 'fd { on | off }' option in the 'ip' tool from iproute2 or by setting the CAN netdevice MTU to CAN_MTU (16) or to CANFD_MTU (72).

Oliver Hartkopp committed 12 years ago

Commit bc05a891 parent 9859ccd3 files · +41 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/can/netlink.h+1−0
@@ -96,6 +96,7 @@ struct can_ctrlmode { · 95 unmodified lines
9696 #define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */
9797 #define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
9898 #define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
99+#define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */
99100
100101 /*
101102 * CAN device statistics