[Devel] [PATCH RHEL10 COMMIT] selftests: net: l2tp: ensure required modules are loaded

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jan 9 18:15:06 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.29.vz10
------>
commit c969e337262e0aa5fe25e64a37f62b74d8b4e6d6
Author: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Date:   Sun Jan 4 01:50:26 2026 +0000

    selftests: net: l2tp: ensure required modules are loaded
    
    The net kselftest l2tp.sh fails when the required l2tp kernel modules
    are not loaded beforehand.
    
    Explicitly load the necessary l2tp modules via modprobe before running
    the test, so that l2tp.sh does not depend on the module autoloading
    behaviour of the system.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-121804
    
    Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
    
    Feature: fix selftests
---
 tools/testing/selftests/net/l2tp.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/net/l2tp.sh b/tools/testing/selftests/net/l2tp.sh
index 88de7166c8ae9..0927056b92689 100755
--- a/tools/testing/selftests/net/l2tp.sh
+++ b/tools/testing/selftests/net/l2tp.sh
@@ -369,6 +369,9 @@ do
 	esac
 done
 
+modprobe l2tp_eth || exit $ksft_skip
+modprobe l2tp_ip6 || exit $ksft_skip
+
 run_tests
 cleanup
 


More information about the Devel mailing list