Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: devmem: add ipv4 support to chunks test

Add ipv4 support to the recently added chunks tests, which was added as
ipv6 only.

Signed-off-by: Mina Almasry <almasrymina@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250615203511.591438-3-almasrymina@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Mina Almasry and committed by
Jakub Kicinski
fb7612b6 46cbaef5

+2 -3
+2 -3
tools/testing/selftests/drivers/net/hw/devmem.py
··· 51 51 52 52 @ksft_disruptive 53 53 def check_tx_chunks(cfg) -> None: 54 - cfg.require_ipver("6") 55 54 require_devmem(cfg) 56 55 57 56 port = rand_port() 58 - listen_cmd = f"socat -U - TCP6-LISTEN:{port}" 57 + listen_cmd = f"socat -U - TCP{cfg.addr_ipver}-LISTEN:{port}" 59 58 60 59 with bkg(listen_cmd, exit_wait=True) as socat: 61 60 wait_port_listen(port) 62 - cmd(f"echo -e \"hello\\nworld\"| {cfg.bin_remote} -f {cfg.ifname} -s {cfg.addr_v['6']} -p {port} -z 3", host=cfg.remote, shell=True) 61 + cmd(f"echo -e \"hello\\nworld\"| {cfg.bin_remote} -f {cfg.ifname} -s {cfg.addr} -p {port} -z 3", host=cfg.remote, shell=True) 63 62 64 63 ksft_eq(socat.stdout.strip(), "hello\nworld") 65 64