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).
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -96,6 +96,7 @@ struct can_ctrlmode { · 95 unmodified lines | ||
| 96 | 96 | #define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */ |
| 97 | 97 | #define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */ |
| 98 | 98 | #define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */ |
| 99 | +#define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */ | |
| 99 | 100 | |
| 100 | 101 | /* |
| 101 | 102 | * CAN device statistics |