[Devel] [PATCH RHEL10 COMMIT] selftests: sch_ets.sh: skip test if cls_basic module is missing
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Dec 23 16:42:08 MSK 2025
The commit is pushed to "vz10.kselftest.net-forwarding" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit 68eda162ef56e8886904b0c939e70ce0ebcb4df7
Author: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Date: Mon Dec 22 19:48:40 2025 +0000
selftests: sch_ets.sh: skip test if cls_basic module is missing
The sch_ets.sh test requires the cls_basic kernel module to function
properly. If the kernel is compiled without CONFIG_NET_CLS_BASIC,
the test fails instead of being gracefully skipped.
Add a check to attempt loading the cls_basic module. If modprobe fails,
the test will be skipped.
https://virtuozzo.atlassian.net/browse/VSTOR-121418
Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
---
tools/testing/selftests/net/forwarding/sch_ets_core.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/net/forwarding/sch_ets_core.sh b/tools/testing/selftests/net/forwarding/sch_ets_core.sh
index 8f9922c695b0c..116ae2022f788 100644
--- a/tools/testing/selftests/net/forwarding/sch_ets_core.sh
+++ b/tools/testing/selftests/net/forwarding/sch_ets_core.sh
@@ -98,6 +98,7 @@ classifier_mode()
{
echo "Running in classifier mode"
ets_delete_qdisc
+ modprobe cls_basic || exit $ksft_skip
ETS_CHANGE_QDISC=ets_change_qdisc_classifier
}
More information about the Devel
mailing list