* [PATCH net-next] selftests/net: ensure mptcp is enabled in netns
@ 2025-02-24 9:40 Hangbin Liu
2025-02-24 13:53 ` Matthieu Baerts
2025-02-26 3:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Hangbin Liu @ 2025-02-24 9:40 UTC (permalink / raw)
To: netdev
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Shuah Khan, linux-kselftest, linux-kernel,
Hangbin Liu, Davide Caratti
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>
---
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 6c6ad346eaa0..4ff746db1256 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'
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] selftests/net: ensure mptcp is enabled in netns
2025-02-24 9:40 [PATCH net-next] selftests/net: ensure mptcp is enabled in netns Hangbin Liu
@ 2025-02-24 13:53 ` Matthieu Baerts
2025-02-25 12:37 ` Hangbin Liu
2025-02-26 3:10 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Matthieu Baerts @ 2025-02-24 13:53 UTC (permalink / raw)
To: Hangbin Liu, Davide Caratti
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Shuah Khan, linux-kselftest, linux-kernel, netdev
Hi Hangbin, Davide,
On 24/02/2025 10:40, Hangbin Liu wrote:
> 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.
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?
> Let's also ensure MPTCP is enabled in netns for ip_local_port_range so
> that it passes on all distributions.
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] selftests/net: ensure mptcp is enabled in netns
2025-02-24 13:53 ` Matthieu Baerts
@ 2025-02-25 12:37 ` Hangbin Liu
0 siblings, 0 replies; 4+ messages in thread
From: Hangbin Liu @ 2025-02-25 12:37 UTC (permalink / raw)
To: Matthieu Baerts
Cc: Davide Caratti, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Simon Horman, Shuah Khan, linux-kselftest,
linux-kernel, netdev
On Mon, Feb 24, 2025 at 02:53:13PM +0100, Matthieu Baerts wrote:
> Hi Hangbin, Davide,
>
> On 24/02/2025 10:40, Hangbin Liu wrote:
> > 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.
>
> 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
>
> > Let's also ensure MPTCP is enabled in netns for ip_local_port_range so
> > that it passes on all distributions.
>
> Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
>
> Cheers,
> Matt
> --
> Sponsored by the NGI0 Core fund.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] selftests/net: ensure mptcp is enabled in netns
2025-02-24 9:40 [PATCH net-next] selftests/net: ensure mptcp is enabled in netns Hangbin Liu
2025-02-24 13:53 ` Matthieu Baerts
@ 2025-02-26 3:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-02-26 3:10 UTC (permalink / raw)
To: Hangbin Liu
Cc: netdev, davem, edumazet, kuba, pabeni, horms, shuah,
linux-kselftest, linux-kernel, dcaratti
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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.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.
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-26 3:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 9:40 [PATCH net-next] selftests/net: ensure mptcp is enabled in netns Hangbin Liu
2025-02-24 13:53 ` Matthieu Baerts
2025-02-25 12:37 ` Hangbin Liu
2025-02-26 3:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).