diff options
| author | Vincent Mailhol <[email protected]> | 2025-05-21 14:18:53 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2025-05-21 16:05:11 +0000 |
| commit | 3e20585abf2233da5212e6fb2f7c7ea0f337cd09 (patch) | |
| tree | d13b1c2b6c16b3e3b8f432aa4b381b4935220e34 /tools/net/ynl/pyynl/lib/ynl.py | |
| parent | selftests: can: Import tst-filter from can-tests (diff) | |
| download | kernel-3e20585abf2233da5212e6fb2f7c7ea0f337cd09.tar.gz kernel-3e20585abf2233da5212e6fb2f7c7ea0f337cd09.zip | |
selftests: can: test_raw_filter.sh: add support of physical interfaces
Allow the user to specify a physical interface through the $CANIF
environment variable. Add a $BITRATE environment variable set with a
default value of 500000.
If $CANIF is omitted or if it starts with vcan (e.g. vcan1), the test
will use the virtual can interface type. Otherwise, it will assume
that the provided interface is a physical can interface.
For example:
CANIF=can1 BITRATE=1000000 ./test_raw_filter.sh
will run set the can1 interface with a bitrate of one million and run
the tests on it.
Signed-off-by: Vincent Mailhol <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions
