From 33cec3d3430d32a3ea5c4743fa72f04060d3462e Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 25 Oct 2024 18:15:41 +0100 Subject: [PATCH] kernel: enable Multi-Path TCP for !SMALL_FLASH targets Expose Kernel's CONFIG_MPTCP option and enable it by default for !SMALL_FLASH targets. The idea behind enabling it by default is to allow users of the binary distribution to make use of MPTCP tunneling for link aggregation. Using MPTCP for link aggregation is an often discussed topic in the forum and there is even a whole OpenWrt fork (MPTCPRouter) just for that. Enabling the kernel-side of the story by default will allow using MPTCP on vanilla OpenWrt without having to build anything from source. See also https://openwrt.org/docs/guide-user/network/mptcp Signed-off-by: Daniel Golle --- config/Config-kernel.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 614878537..101b4b5b6 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -1244,6 +1244,20 @@ config KERNEL_PAGE_POOL_STATS depends on KERNEL_PAGE_POOL depends on !(LINUX_5_4||LINUX_5_10) +config KERNEL_MPTCP + bool "Multi-Path TCP support" + default y if !SMALL_FLASH + help + Select this option to enable support for Multi-Path TCP. + Increases the compressed kernel size by ~214kB (as of Linux 6.6). + +if KERNEL_IPV6 +config KERNEL_MPTCP_IPV6 + bool "IPv6 support for Multipath TCP" + depends on KERNEL_MPTCP + default KERNEL_MPTCP +endif + # # NFS related symbols #