Skip to content

Commit 59d83f2

Browse files
spikehNipaLocal
authored and
NipaLocal
committed
io_uring/zcrx: enable tcp-data-split in selftest
For bnxt when the agg ring is used then tcp-data-split is automatically reported to be enabled, but __net_mp_open_rxq() requires tcp-data-split to be explicitly enabled by the user. Enable tcp-data-split explicitly in io_uring zc rx selftest. Signed-off-by: David Wei <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 5333ec3 commit 59d83f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_zcrx(cfg) -> None:
3535
rx_ring = _get_rx_ring_entries(cfg)
3636

3737
try:
38+
ethtool(f"-G {cfg.ifname} tcp-data-split on", host=cfg.remote)
3839
ethtool(f"-G {cfg.ifname} rx 64", host=cfg.remote)
3940
ethtool(f"-X {cfg.ifname} equal {combined_chans - 1}", host=cfg.remote)
4041
flow_rule_id = _set_flow_rule(cfg, combined_chans - 1)
@@ -48,6 +49,7 @@ def test_zcrx(cfg) -> None:
4849
ethtool(f"-N {cfg.ifname} delete {flow_rule_id}", host=cfg.remote)
4950
ethtool(f"-X {cfg.ifname} default", host=cfg.remote)
5051
ethtool(f"-G {cfg.ifname} rx {rx_ring}", host=cfg.remote)
52+
ethtool(f"-G {cfg.ifname} tcp-data-split auto", host=cfg.remote)
5153

5254

5355
def test_zcrx_oneshot(cfg) -> None:
@@ -59,6 +61,7 @@ def test_zcrx_oneshot(cfg) -> None:
5961
rx_ring = _get_rx_ring_entries(cfg)
6062

6163
try:
64+
ethtool(f"-G {cfg.ifname} tcp-data-split on", host=cfg.remote)
6265
ethtool(f"-G {cfg.ifname} rx 64", host=cfg.remote)
6366
ethtool(f"-X {cfg.ifname} equal {combined_chans - 1}", host=cfg.remote)
6467
flow_rule_id = _set_flow_rule(cfg, combined_chans - 1)
@@ -72,6 +75,7 @@ def test_zcrx_oneshot(cfg) -> None:
7275
ethtool(f"-N {cfg.ifname} delete {flow_rule_id}", host=cfg.remote)
7376
ethtool(f"-X {cfg.ifname} default", host=cfg.remote)
7477
ethtool(f"-G {cfg.ifname} rx {rx_ring}", host=cfg.remote)
78+
ethtool(f"-G {cfg.ifname} tcp-data-split auto", host=cfg.remote)
7579

7680

7781
def main() -> None:

0 commit comments

Comments
 (0)