[Devel] [PATCH RHEL10 COMMIT] ms/selftests/net: ensure mptcp is enabled in netns

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 23 12:49:33 MSK 2025


The commit is pushed to "branch-rh10-6.12.0-55.13.1.3.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit 3507b40dc3fde9b93d2c166b76a040c4b3f9d379
Author: Hangbin Liu <liuhangbin at gmail.com>
Date:   Tue Dec 16 21:04:14 2025 +0000

    ms/selftests/net: ensure mptcp is enabled in netns
    
    Some distributions may not enable MPTCP by default. All other MPTCP tests
    source mptcp_lib.sh to ensure MPTCP is enabled before testing. However,
    the ip_local_port_range test is the only one that does not include this
    step.
    
    Let's also ensure MPTCP is enabled in netns for ip_local_port_range so
    that it passes on all distributions.
    
    Suggested-by: Davide Caratti <dcaratti at redhat.com>
    Signed-off-by: Hangbin Liu <liuhangbin at gmail.com>
    Acked-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
    Link: https://patch.msgid.link/20250224094013.13159-1-liuhangbin@gmail.com
    Signed-off-by: Jakub Kicinski <kuba at kernel.org>
    
    https://virtuozzo.atlassian.net/browse/VSTOR-120995
    (cherry picked from commit 0f58804080e3eea9d2b92188175a49adaefae34c)
    Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
    
    Feature: fix ms/selftests
---
 tools/testing/selftests/net/ip_local_port_range.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/ip_local_port_range.sh b/tools/testing/selftests/net/ip_local_port_range.sh
index 6c6ad346eaa0c..4ff746db12564 100755
--- a/tools/testing/selftests/net/ip_local_port_range.sh
+++ b/tools/testing/selftests/net/ip_local_port_range.sh
@@ -2,4 +2,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 ./in_netns.sh \
-  sh -c 'sysctl -q -w net.ipv4.ip_local_port_range="40000 49999" && ./ip_local_port_range'
+  sh -c 'sysctl -q -w net.mptcp.enabled=1 && \
+         sysctl -q -w net.ipv4.ip_local_port_range="40000 49999" && \
+         ./ip_local_port_range'


More information about the Devel mailing list