selftests: net-drv: remove the nic_performance and nic_link_layer tests
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 selftests: net-drv: remove the nic_performance and nic_link_layer tests
Revert fbbf93556f0c ("selftests: nic_performance: Add selftest for performance of NIC driver") Revert c087dc54394b ("selftests: nic_link_layer: Add selftest case for speed and duplex states") Revert 6116075e18f7 ("selftests: nic_link_layer: Add link layer selftest for NIC driver")
These tests don't clean up after themselves, don't use the disruptive annotations, don't get included in make install etc. etc. The tests were added before we have any "HW" runner, so the issues were missed. Our CI doesn't have any way of excluding broken tests, remove these for now to stop the random pollution of results due to broken env. We can always add them back once / if fixed.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- .../testing/selftests/drivers/net/hw/Makefile | 2 - .../drivers/net/hw/lib/py/__init__.py | 1 - .../drivers/net/hw/lib/py/linkconfig.py | 222 ------------------ .../drivers/net/hw/nic_link_layer.py | 113 --------- .../drivers/net/hw/nic_performance.py | 137 ----------- .../selftests/drivers/net/lib/py/load.py | 20 +- 6 files changed, 1 insertion(+), 494 deletions(-) delete mode 100644 tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py delete mode 100644 tools/testing/selftests/drivers/net/hw/nic_link_layer.py delete mode 100644 tools/testing/selftests/drivers/net/hw/nic_performance.py
tools/testing/selftests/drivers/net/hw/Makefile +0 -2
@@ -15,8 +15,6 @@ TEST_PROGS = \ iou-zcrx.py \ irq.py \ loopback.sh \ - nic_link_layer.py \ - nic_performance.py \ pp_alloc_fail.py \ rss_ctx.py \ rss_input_xfrm.py \
tools/testing/selftests/drivers/net/hw/lib/py/__init__.py +0 -1
@@ -9,7 +9,6 @@ KSFT_DIR = (Path(__file__).parent / "../../../../..").resolve() sys.path.append(KSFT_DIR.as_posix()) from net.lib.py import * from drivers.net.lib.py import * - from .linkconfig import LinkConfig except ModuleNotFoundError as e: ksft_pr("Failed importing `net` library from kernel sources") ksft_pr(str(e))
tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py deleted +0 -222
222 lines not on this page · raw message
tools/testing/selftests/drivers/net/hw/nic_link_layer.py deleted +0 -113
113 lines not on this page · raw message
tools/testing/selftests/drivers/net/hw/nic_performance.py deleted +0 -137
137 lines not on this page · raw message
tools/testing/selftests/drivers/net/lib/py/load.py +1 -19
@@ -2,7 +2,7 @@ import time -from lib.py import ksft_pr, cmd, ip, rand_port, wait_port_listen, bkg +from lib.py import ksft_pr, cmd, ip, rand_port, wait_port_listen class GenerateTraffic: def __init__(self, env, port=None):
@@ -23,24 +23,6 @@ from lib.py import ksft_pr, cmd, ip, rand_port, wait_port_listen, bkg self.stop(verbose=True) raise Exception("iperf3 traffic did not ramp up") - def run_remote_test(self, env: object, port=None, command=None): - if port is None: - port = rand_port() - try: - server_cmd = f"iperf3 -s 1 -p {port} --one-off" - with bkg(server_cmd, host=env.remote): - #iperf3 opens TCP connection as default in server - #-u to be specified in client command for UDP - wait_port_listen(port, host=env.remote) - except Exception as e: - raise Exception(f"Unexpected error occurred while running server command: {e}") - try: - client_cmd = f"iperf3 -c {env.remote_addr} -p {port} {command}" - proc = cmd(client_cmd) - return proc - except Exception as e: - raise Exception(f"Unexpected error occurred while running client command: {e}") - def _wait_pkts(self, pkt_cnt=None, pps=None): """ Wait until we've seen pkt_cnt or until traffic ramps up to pps.
Signature · 1 line
2.49.0
Quoted 4 lines · Jakub Kicinski
Revert
fbbf93556f0c("selftests:nic_performance: Add selftest for performance of NIC driver") Revertc087dc54394b("selftests:nic_link_layer: Add selftest case for speed and duplex states") Revert6116075e18f7("selftests:nic_link_layer: Add link layer selftest for NIC driver")
Quoted 8 lines
These tests don't clean up after themselves, don't use the disruptive annotations, don't get included in make install etc. etc. The tests were added before we have any "HW" runner, so the issues were missed. Our CI doesn't have any way of excluding broken tests, remove these for now to stop the random pollution of results due to broken env. We can always add them back once / if fixed.
Signed-off-by Jakub Kicinski <[email protected]>
Quoted 4 lines · Jakub Kicinski
Revert
fbbf93556f0c("selftests:nic_performance: Add selftest for performance of NIC driver") Revertc087dc54394b("selftests:nic_link_layer: Add selftest case for speed and duplex states") Revert6116075e18f7("selftests:nic_link_layer: Add link layer selftest for NIC driver")
Quoted 8 lines
These tests don't clean up after themselves, don't use the disruptive annotations, don't get included in make install etc. etc. The tests were added before we have any "HW" runner, so the issues were missed. Our CI doesn't have any way of excluding broken tests, remove these for now to stop the random pollution of results due to broken env. We can always add them back once / if fixed.
Signed-off-by Jakub Kicinski <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 4 lines · On Wed, 7 May 2025 07:01:07 -0700 you wrote:
Revert
fbbf93556f0c("selftests:nic_performance: Add selftest for performance of NIC driver") Revertc087dc54394b("selftests:nic_link_layer: Add selftest case for speed and duplex states") Revert6116075e18f7("selftests:nic_link_layer: Add link layer selftest for NIC driver")
Quoted 8 lines
These tests don't clean up after themselves, don't use the disruptive annotations, don't get included in make install etc. etc. The tests were added before we have any "HW" runner, so the issues were missed. Our CI doesn't have any way of excluding broken tests, remove these for now to stop the random pollution of results due to broken env. We can always add them back once / if fixed.
[...]
Here is the summary with links:
- [net-next] selftests: net-drv: remove the nic_performance and nic_link_layer tests
https://git.kernel.org/netdev/net-next/c/d97e2634fbdc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html