selftests/net: ensure mptcp is enabled in netns
Subsystems (3)
PATCH 1/1 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.
--- tools/testing/selftests/net/ip_local_port_range.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tools/testing/selftests/net/ip_local_port_range.sh +3 -1
@@ -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'
Signature · 1 line
2.46.0
Hi Hangbin, Davide,
Quoted 4 lines · Hangbin Liu
Some distributions may not enable MPTCP by default. All other MPTCP tests source
mptcp_lib.shto ensure MPTCP is enabled before testing. However, theip_local_port_rangetest is the only one that does not include this step.
This modification is OK for me, but would it not be time to stop patching the kernel of these distributions to disable MPTCP by default?
As far as I know, only one Linux distribution is doing that, and that's the one supporting MPTCP the best :)
It was making sense when MPTCP was backported to older kernels, but now that v6.12 is used as a new base, it probably no longer makes sense, no?
Quoted 2 lines
Let's also ensure MPTCP is enabled in netns for
ip_local_port_rangeso that it passes on all distributions.
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.
Quoted 8 lines · Matthieu Baerts
Hi Hangbin, Davide,
Quoted 4 lines · Hangbin Liu
Some distributions may not enable MPTCP by default. All other MPTCP tests source
mptcp_lib.shto ensure MPTCP is enabled before testing. However, theip_local_port_rangetest is the only one that does not include this step.
Quoted 8 lines
This modification is OK for me, but would it not be time to stop patching the kernel of these distributions to disable MPTCP by default?
As far as I know, only one Linux distribution is doing that, and that's the one supporting MPTCP the best :)
It was making sense when MPTCP was backported to older kernels, but now that v6.12 is used as a new base, it probably no longer makes sense, no?
Hi Matthieu,
Thanks for your review. I can't control the decisions. I also hope we don't need to do this in future :)
Regards
Hangbin
Quoted 12 lines
Quoted 3 lines
Let's also ensure MPTCP is enabled in netns for
ip_local_port_rangeso that it passes on all distributions.Cheers,
MattSignature · 1 line
Sponsored by the NGI0 Core fund.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 24 Feb 2025 09:40:13 +0000 you wrote:
Some distributions may not enable MPTCP by default. All other MPTCP tests source
mptcp_lib.shto ensure MPTCP is enabled before testing. However, theip_local_port_rangetest is the only one that does not include this step.Let's also ensure MPTCP is enabled in netns for
ip_local_port_rangeso that it passes on all distributions.[...]
Here is the summary with links:
- [net-next] selftests/net: ensure mptcp is enabled in netns
https://git.kernel.org/netdev/net-next/c/0f58804080e3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html