[Devel] [PATCH vz10 2/4] selftests: net: l2tp: ensure required modules are loaded

Aleksei Oladko aleksey.oladko at virtuozzo.com
Sun Jan 4 04:50:26 MSK 2026


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>
---
 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 88de7166c8ae..0927056b9268 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
 
-- 
2.43.0



More information about the Devel mailing list