Skip to content

Commit 389b8fb

Browse files
geertudavem330
authored andcommitted
mptcp: MPTCP_HMAC_TEST should depend on MPTCP
As the MPTCP HMAC test is integrated into the MPTCP code, it can be built only when MPTCP is enabled. Hence when MPTCP is disabled, asking the user if the test code should be enabled is futile. Wrap the whole block of MPTCP-specific config options inside a check for MPTCP. While at it, drop the "default n" for MPTCP_HMAC_TEST, as that is the default anyway. Fixes: 65492c5 ("mptcp: move from sha1 (v0) to sha256 (v1)") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8e1974a commit 389b8fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

net/mptcp/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ config MPTCP
1010
uses the TCP protocol, and TCP options carry header information for
1111
MPTCP.
1212

13+
if MPTCP
14+
1315
config MPTCP_IPV6
1416
bool "MPTCP: IPv6 support for Multipath TCP"
15-
depends on MPTCP
1617
select IPV6
1718
default y
1819

1920
config MPTCP_HMAC_TEST
2021
bool "Tests for MPTCP HMAC implementation"
21-
default n
2222
help
2323
This option enable boot time self-test for the HMAC implementation
2424
used by the MPTCP code
2525

2626
Say N if you are unsure.
27+
28+
endif

0 commit comments

Comments
 (0)