]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: depends on built-in IPv6
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Wed, 21 Oct 2020 15:55:49 +0000 (17:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Oct 2020 03:39:58 +0000 (20:39 -0700)
commita27cbbea1ae798fbcd14ebbf44fc35e20e182085
treef8f4077dc621145e4aae48ec85f4668cf7fa7c85
parent7c6b8e66e0622547bd963912c6ea22f1984c050c
selftests: mptcp: depends on built-in IPv6

Recently, CONFIG_MPTCP_IPV6 no longer selects CONFIG_IPV6. As a
consequence, if CONFIG_MPTCP_IPV6=y is added to the kconfig, it will no
longer ensure CONFIG_IPV6=y. If it is not enabled, CONFIG_MPTCP_IPV6
will stay disabled and selftests will fail.

We also need CONFIG_IPV6 to be built-in. For more details, please see
commit 3d35ac8f0d25 ("mptcp: depends on IPV6 but not as a module").

Note that 'make kselftest-merge' will take all 'config' files found in
'tools/testsing/selftests'. Because some of them already set
CONFIG_IPV6=y, MPTCP selftests were still passing. But they will fail if
MPTCP selftests are launched manually after having executed this command
to prepare the kernel config:

  ./scripts/kconfig/merge_config.sh -m .config \
      ./tools/testing/selftests/net/mptcp/config

Fixes: 8de5266a0164 ("mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it")
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Link: https://lore.kernel.org/r/20201021155549.933731-1-matthieu.baerts@tessares.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/config