Re: [PATCH v2] selftests: can: add CAN XL raw socket tests

From: Quchaosheng

Date: Mon Oct 12 2026 - 05:00:04 EST


Hello Marc, Oliver,

A ping on this one. It has been three weeks without a reply, so here is
the short version in case that is what has kept it from being looked at.

tools/testing/selftests/net/can/ has one test, test_raw_filter, which
exercises classic CAN filter matching. CAN XL has been in the tree since
CAN_MTU, CANFD_MTU and CANXL_MTU became distinct, and the raw socket CAN
XL options (CAN_RAW_XL_FRAMES, CAN_RAW_XL_VCID_OPTS) have no test at all.
This series adds eight cases to the existing test_raw_filter.

What they cover: classic/FD/XL length separation, the mandatory CANXL_XLF
flag, the declared length against the payload actually written, that
enabling CAN XL also enables CAN FD and cannot be undone while XL stays
on, and VCID handling including the RX filter.

On vcan, no hardware needed:

# PASSED: 26 / 26 tests passed.
# Totals: pass:26 fail:0 xfail:0 xpass:0 skip:0 error:0

On an interface forced down to a classic CAN MTU the same run gives
pass:19 skip:7, so nothing fails on a host that cannot carry CAN XL.

Nothing here depends on anything else in flight. If the scope is the
problem I am happy to drop the vcan plumbing and keep only the XL cases,
or to move whichever subset you prefer to the next release window. If
the answer is that this does not belong in the directory at all, that is
fine too and I will stop.

Thanks,
Chaosheng Qu