diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-21 17:22:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-21 17:22:21 -0800 |
| commit | 4843f6873f7c4835e62f2c73ba0fd538e57a2f22 (patch) | |
| tree | ee620501a1ffbad9a83141e3a70154e1fe641040 /tools/testing/selftests/drivers/net/hw/devmem.py | |
| download | linux-master.tar.gz linux-master.zip | |
Merge tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctlgraftedHEADmaster
Pull sysctl fix from Joel Granados:
"Fix sysctl jiffy / milliseconds conversion:
- Writing a previously read value "X" shall keep the same "X" value
- Remove truncation that was causing incorrect saturation of valid
timeouts"
* tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: Do jiffy / ms conversion in ulong space
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/devmem.py')
| -rwxr-xr-x | tools/testing/selftests/drivers/net/hw/devmem.py | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/net/hw/devmem.py b/tools/testing/selftests/drivers/net/hw/devmem.py new file mode 100755 index 000000000..82c11ffc4 --- /dev/null +++ b/tools/testing/selftests/drivers/net/hw/devmem.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0 + +from os import path +from devmem_lib import (setup_test, run_rx, run_tx, run_tx_chunks, run_rx_hds, + run_rx_large_niov) +from lib.py import ksft_run, ksft_exit, ksft_disruptive +from lib.py import NetDrvEpEnv + + +@ksft_disruptive +def check_rx(cfg) -> None: + """Run the devmem RX test.""" + run_rx(cfg) + + +@ksft_disruptive +def check_tx(cfg) -> None: + """Run the devmem TX test.""" + run_tx(cfg) + + +@ksft_disruptive +def check_tx_chunks(cfg) -> None: + """Run the devmem TX chunking test.""" + run_tx_chunks(cfg) + + +def check_rx_hds(cfg) -> None: + """Run the HDS test.""" + run_rx_hds(cfg) + + +def check_rx_large_niov(cfg) -> None: + """Run the devmem RX test with rx-page-size = 16 KiB.""" + run_rx_large_niov(cfg) + + +def main() -> None: + """Run the devmem test cases.""" + with NetDrvEpEnv(__file__) as cfg: + setup_test(cfg, path.abspath(path.dirname(__file__) + "/ncdevmem")) + ksft_run([check_rx, check_tx, check_tx_chunks, check_rx_hds, + check_rx_large_niov], + args=(cfg,)) + ksft_exit() + + +if __name__ == "__main__": + main() |
