[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260120230208.328337-7-aleksey.oladko@virtuozzo.com>
Date: Tue, 20 Jan 2026 23:02:08 +0000
From: Aleksei Oladko <aleksey.oladko@...tuozzo.com>
To: "David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>,
Shuah Khan <shuah@...nel.org>, Petr Machata <petrm@...dia.com>,
Nikolay Aleksandrov <razor@...ckwall.org>
Cc: netdev@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
Aleksei Oladko <aleksey.oladko@...tuozzo.com>
Subject: [PATCH 6/6] selftests: forwarding: router_mpath_seed: skip tests if tools or feats are missing
The router_mpath_seed.sh selftest assume the presence of iproute2
support for the `hw_stats` keyword in `ip nexthop` commands. These
assumptions can cause test failures.
This patch improves test robustness by skipping the test if
ip nexthop add help does not mention hw_stats
Signed-off-by: Aleksei Oladko <aleksey.oladko@...tuozzo.com>
---
tools/testing/selftests/net/forwarding/router_mpath_seed.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh b/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
index 314cb906c1eb..d9dc5d3a10d5 100755
--- a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
+++ b/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
@@ -322,6 +322,8 @@ test_mpath_seed_stability_ipv6()
-p 64 -d 0 -c 10 -t udp
}
+run_cmd_grep 'hw_stats' ip nexthop add help || exit $ksft_skip
+
trap cleanup EXIT
setup_prepare
--
2.43.0
Powered by blists - more mailing lists