Skip to content

Commit c0f2178

Browse files
spikehkuba-moo
authored andcommitted
io_uring/zcrx: fix selftests w/ updated netdev Python helpers
Fix io_uring zero copy rx selftest with updated netdev Python helpers. Signed-off-by: David Wei <dw@davidwei.uk> Link: https://patch.msgid.link/20250402172414.895276-1-dw@davidwei.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8ea7c1b commit c0f2178

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/selftests/drivers/net/hw/iou-zcrx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _set_flow_rule(cfg, chan):
2727

2828

2929
def test_zcrx(cfg) -> None:
30-
cfg.require_v6()
30+
cfg.require_ipver('6')
3131

3232
combined_chans = _get_combined_channels(cfg)
3333
if combined_chans < 2:
@@ -40,7 +40,7 @@ def test_zcrx(cfg) -> None:
4040
flow_rule_id = _set_flow_rule(cfg, combined_chans - 1)
4141

4242
rx_cmd = f"{cfg.bin_remote} -s -p 9999 -i {cfg.ifname} -q {combined_chans - 1}"
43-
tx_cmd = f"{cfg.bin_local} -c -h {cfg.remote_v6} -p 9999 -l 12840"
43+
tx_cmd = f"{cfg.bin_local} -c -h {cfg.remote_addr_v['6']} -p 9999 -l 12840"
4444
with bkg(rx_cmd, host=cfg.remote, exit_wait=True):
4545
wait_port_listen(9999, proto="tcp", host=cfg.remote)
4646
cmd(tx_cmd)
@@ -51,7 +51,7 @@ def test_zcrx(cfg) -> None:
5151

5252

5353
def test_zcrx_oneshot(cfg) -> None:
54-
cfg.require_v6()
54+
cfg.require_ipver('6')
5555

5656
combined_chans = _get_combined_channels(cfg)
5757
if combined_chans < 2:
@@ -64,7 +64,7 @@ def test_zcrx_oneshot(cfg) -> None:
6464
flow_rule_id = _set_flow_rule(cfg, combined_chans - 1)
6565

6666
rx_cmd = f"{cfg.bin_remote} -s -p 9999 -i {cfg.ifname} -q {combined_chans - 1} -o 4"
67-
tx_cmd = f"{cfg.bin_local} -c -h {cfg.remote_v6} -p 9999 -l 4096 -z 16384"
67+
tx_cmd = f"{cfg.bin_local} -c -h {cfg.remote_addr_v['6']} -p 9999 -l 4096 -z 16384"
6868
with bkg(rx_cmd, host=cfg.remote, exit_wait=True):
6969
wait_port_listen(9999, proto="tcp", host=cfg.remote)
7070
cmd(tx_cmd)

0 commit comments

Comments
 (0)