[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260120230208.328337-5-aleksey.oladko@virtuozzo.com>
Date: Tue, 20 Jan 2026 23:02:06 +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 4/6] selftests: forwarding: tc_flower_cfm: skip tests if tools or feats are missing
The tc_flower_cfm.sh selftest assume the presence of iproute2
support for the `cfm` keyword in `tc filter` commands. These
assumptions can cause test failures.
This patch improves test robustness by skipping the test if
tc filter help does not mention CFM
Signed-off-by: Aleksei Oladko <aleksey.oladko@...tuozzo.com>
---
tools/testing/selftests/net/forwarding/tc_flower_cfm.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh b/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh
index 3ca20df952eb..65f95fe88b38 100755
--- a/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh
+++ b/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh
@@ -196,6 +196,8 @@ cleanup()
vrf_cleanup
}
+run_cmd_grep 'CFM' tc filter add dev lo ingress flower help || exit $ksft_skip
+
trap cleanup EXIT
setup_prepare
--
2.43.0
Powered by blists - more mailing lists