[PATCH iproute2-next v3 0/7] iplink_can: add CAN XL support

From: Vincent Mailhol

Date: Wed Dec 03 2025 - 13:25:53 EST


Support for CAN XL was added to the kernel in [1]. This series is the
iproute2 counterpart.

Patches #1 to #3 are clean-ups. They refactor iplink_can's
print_usage()'s function.

Patches #4 to #7 add the CAN XL interface to iplink_can.

[1] commit 113aa9101a91 ("Merge patch series "can: netlink: add CAN XL support")
Link: https://git.kernel.org/netdev/net-next/c/113aa9101a91

Signed-off-by: Vincent Mailhol <mailhol@xxxxxxxxxx>

---
Changes in v3:

- Patch #5: only use string literals in print_uint(). To achieve
this, remove the "is_xl" parameter from can_print_xtdc_opt() and
instead add can_print_xtdc_opt().

- Reword patch #4 to #7 subjects.

Link to v2: https://lore.kernel.org/r/20251201-canxl-netlink-v2-0-dadfac811872@xxxxxxxxxx

Changes in v2:

- add the "iproute2-next" prefix to the patches

- s/matches/strcmp/g in can_parse_opt()

- Patch #3: "s/milli second/millisecond/g" and "s/nano second/nanosecond/g"

- Patch #6: s/XL-TMS/TMS/g in print_ctrlmode()

- Patch #7: Remove a double space in patch description

Link to v1: https://lore.kernel.org/r/20251129-canxl-netlink-v1-0-96f2c0c54011@xxxxxxxxxx

---
Vincent Mailhol (7):
iplink_can: print_usage: fix the text indentation
iplink_can: print_usage: change unit for minimum time quanta to mtq
iplink_can: print_usage: describe the CAN bittiming units
iplink_can: add RESTRICTED operation mode support
iplink_can: add initial CAN XL support
iplink_can: add CAN XL transceiver mode setting (TMS) support
iplink_can: add CAN XL TMS PWM configuration support

ip/iplink_can.c | 349 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 331 insertions(+), 18 deletions(-)
---
base-commit: 1a909dbde03c3f53612cd16dc1c8cb8d58931364
change-id: 20250921-canxl-netlink-dd17ae310258

Best regards,
--
Vincent Mailhol <mailhol@xxxxxxxxxx>