]> Gentwo Git Trees - linux/.git/commit
selftests: drv-net: introduce Iperf3Runner for measurement use cases
authorCarolina Jubran <cjubran@nvidia.com>
Sun, 30 Nov 2025 09:19:34 +0000 (11:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Dec 2025 01:18:41 +0000 (17:18 -0800)
commit2a60ce94c6e871cbe761e6019d40bb8cabb8d15d
treec08fe60670d90cf58612194e59f4d8d2055ac7e3
parenta8658f7bb6504af125242bb4d4e49ca032eccf91
selftests: drv-net: introduce Iperf3Runner for measurement use cases

GenerateTraffic was added to spin up long-running iperf3 load, mainly
to drive high PPS background traffic. It was never meant to provide
stable throughput numbers, and trying to repurpose it for measurement
does not make sense.

Introduce Iperf3Runner to allow tests to split out server/client
configuration, control start/stop, and collect JSON output for
analysis. This makes it possible to measure bandwidth directly when
validating egress shaping.

GenerateTraffic stays as the background load generator, reusing the
common iperf3 helpers under the hood.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Nimrod Oren <noren@nvidia.com>
Link: https://patch.msgid.link/20251130091938.4109055-3-cjubran@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/lib/py/__init__.py
tools/testing/selftests/drivers/net/lib/py/__init__.py
tools/testing/selftests/drivers/net/lib/py/load.py