selftests/net: ensure mptcp is enabled in netns
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 24 Feb 2025 09:40:13 +0000 (09:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Feb 2025 02:13:28 +0000 (18:13 -0800)
commit0f58804080e3eea9d2b92188175a49adaefae34c
tree89879ca2561eac2bc945867eb0615340454de21b
parentfc9167192f29485be5621e2e9c8208b717b65753
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>
tools/testing/selftests/net/ip_local_port_range.sh