Skip to content

Commit 977ff53

Browse files
author
Hangbin Liu
committed
selftests/net: ensure mptcp is enabled in netns
JIRA: https://issues.redhat.com/browse/RHEL-80379 Upstream Status: net-next.git commit 0f58804 commit 0f58804 Author: Hangbin Liu <liuhangbin@gmail.com> Date: Mon Feb 24 09:40:13 2025 +0000 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@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20250224094013.13159-1-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Hangbin Liu <haliu@redhat.com>
1 parent 6f97af7 commit 977ff53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/net/ip_local_port_range.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
# SPDX-License-Identifier: GPL-2.0
33

44
./in_netns.sh \
5-
sh -c 'sysctl -q -w net.ipv4.ip_local_port_range="40000 49999" && ./ip_local_port_range'
5+
sh -c 'sysctl -q -w net.mptcp.enabled=1 && \
6+
sysctl -q -w net.ipv4.ip_local_port_range="40000 49999" && \
7+
./ip_local_port_range'

0 commit comments

Comments
 (0)