From: Geliang Tang <tanggeliang@kylinos.cn>
Add MODULE_ALIAS_TCP_ULP("mptcp") to allow automatic loading of MPTCP
module when the "mptcp" ULP is requested via setsockopt(TCP_ULP, "mptcp").
This ensures the module is loaded on demand without requiring manual
modprobe.
Also add missing MODULE_LICENSE and MODULE_DESCRIPTION.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
net/mptcp/subflow.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index d562e149606f..81b562ba81c0 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -2213,3 +2213,7 @@ void __init mptcp_subflow_v6_init(void)
#endif
}
#endif
+
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("MPTCP subflow");
+MODULE_ALIAS_TCP_ULP("mptcp");
--
2.53.0
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal (except selftest_mptcp_join): Success! ✅
- KVM Validation: normal (only selftest_mptcp_join): Success! ✅
- KVM Validation: debug (except selftest_mptcp_join): Unstable: 1 failed test(s): selftest_mptcp_connect_checksum ⚠️
- KVM Validation: debug (only selftest_mptcp_join): Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/26624888148
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/e041f284d365
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=1102686
If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normal
For more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)
On Fri, 2026-05-29 at 15:28 +0800, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> Add MODULE_ALIAS_TCP_ULP("mptcp") to allow automatic loading of MPTCP
> module when the "mptcp" ULP is requested via setsockopt(TCP_ULP,
> "mptcp").
> This ensures the module is loaded on demand without requiring manual
> modprobe.
Oops! "mptcp" cannot be compiled as a standalone module. Ignore this
noise.
-Geliang
>
> Also add missing MODULE_LICENSE and MODULE_DESCRIPTION.
>
> Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
> ---
> net/mptcp/subflow.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> index d562e149606f..81b562ba81c0 100644
> --- a/net/mptcp/subflow.c
> +++ b/net/mptcp/subflow.c
> @@ -2213,3 +2213,7 @@ void __init mptcp_subflow_v6_init(void)
> #endif
> }
> #endif
> +
> +MODULE_LICENSE("GPL");
> +MODULE_DESCRIPTION("MPTCP subflow");
> +MODULE_ALIAS_TCP_ULP("mptcp");
© 2016 - 2026 Red Hat, Inc.