]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: depends on IPV6 but not as a module
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Wed, 21 Oct 2020 10:51:53 +0000 (12:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Oct 2020 15:05:40 +0000 (08:05 -0700)
commitba2648b94b69134e2b855c6084521d471fa1d6e9
tree4ef0fdcd1b2f0e278e9af6750b5792cb6716ff5f
parent289e66837e14e107b8cd38d5a2580f08d0a04c02
mptcp: depends on IPV6 but not as a module

Like TCP, MPTCP cannot be compiled as a module. Obviously, MPTCP IPv6'
support also depends on CONFIG_IPV6. But not all functions from IPv6
code are exported.

To simplify the code and reduce modifications outside MPTCP, it was
decided from the beginning to support MPTCP with IPv6 only if
CONFIG_IPV6 was built inlined. That's also why CONFIG_MPTCP_IPV6 was
created. More modifications are needed to support CONFIG_IPV6=m.

Even if it was not explicit, until recently, we were forcing CONFIG_IPV6
to be built-in because we had "select IPV6" in Kconfig. Now that we have
"depends on IPV6", we have to explicitly set "IPV6=y" to force
CONFIG_IPV6 not to be built as a module.

In other words, we can now only have CONFIG_MPTCP_IPV6=y if
CONFIG_IPV6=y.

Note that the new dependency might hide the fact IPv6 is not supported
in MPTCP even if we have CONFIG_IPV6=m. But selecting IPV6 like we did
before was forcing it to be built-in while it was maybe not what the
user wants.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 7c3f4fcbe7ef ("mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it")
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Link: https://lore.kernel.org/r/20201021105154.628257-1-matthieu.baerts@tessares.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/Kconfig