Skip to content

Commit

Permalink
kernel: add MultiPath TCP kernel config & module (coolsnowwolf#11298)
Browse files Browse the repository at this point in the history
  • Loading branch information
sKyissKy authored Jun 24, 2023
1 parent 981c497 commit 3ef1f5a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/Config-kernel.in
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,13 @@ if KERNEL_IP_MROUTE

endif

config KERNEL_MPTCP
bool "Enable IPv4 MultiPath TCP support"
default y
depends on !(LINUX_4_4||LINUX_5_4)
help
IPv4 MultiPath TCP to kernel support.

#
# IPv6 configuration
#
Expand Down Expand Up @@ -1108,6 +1115,14 @@ if KERNEL_IPV6
config KERNEL_LWTUNNEL_BPF
def_bool n

config KERNEL_MPTCP_IPV6
bool "Enable IPv6 MultiPath TCP support"
default y
depends on KERNEL_MPTCP
depends on !(LINUX_4_4||LINUX_5_4)
help
IPv6 MultiPath TCP to kernel support.

endif

#
Expand Down
17 changes: 17 additions & 0 deletions package/kernel/linux/modules/netsupport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,23 @@ endef
$(eval $(call KernelPackage,inet-diag))


define KernelPackage/inet-mptcp-diag
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=INET diag support for MultiPath TCP
DEPENDS:= +@KERNEL_MPTCP +@KERNEL_MPTCP_IPV6 +kmod-inet-diag
KCONFIG:= CONFIG_INET_MPTCP_DIAG@ge5.6
FILES:= $(LINUX_DIR)/net/mptcp/mptcp_diag.ko@ge5.6
AUTOLOAD:=$(call AutoProbe,mptcp_diag)
endef

define KernelPackage/inet-mptcp-diag/description
Support for INET (MultiPath TCP) socket monitoring interface used by
native Linux tools such as ss.
endef

$(eval $(call KernelPackage,inet-mptcp-diag))


define KernelPackage/wireguard
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=WireGuard secure network tunnel
Expand Down

0 comments on commit 3ef1f5a

Please sign in to comment.