1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Add TCP Congestion Control BBR2 alpha support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-23 19:46:26 +01:00
parent 9d7055bac6
commit 06bdeb4130
3 changed files with 3405 additions and 0 deletions

View file

@ -236,6 +236,13 @@ if ! patch -Rf -N -p1 -s --dry-run < ../../patches/nanqinlang.patch; then
fi
echo "Done"
echo "Checking if BBRv2 patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/bbr2.patch; then
echo "apply..."
patch -N -p1 -s < ../../patches/bbr2.patch
fi
echo "Done"
echo "Checking if smsc75xx patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/smsc75xx.patch; then
echo "apply..."

27
patches/bbr2.patch Normal file
View file

@ -0,0 +1,27 @@
--- a/package/kernel/linux/modules/netsupport.mk 2020-11-22 17:39:14.462349527 +0100
+++ b/package/kernel/linux/modules/netsupport.mk 2020-11-22 17:41:37.719620332 +0100
@@ -948,6 +948,24 @@
$(eval $(call KernelPackage,tcp-bbr))
+define KernelPackage/tcp-bbr2
+ SUBMENU:=$(NETWORK_SUPPORT_MENU)
+ TITLE:=BBRv2 TCP congestion control
+ KCONFIG:= \
+ CONFIG_TCP_CONG_ADVANCED=y \
+ CONFIG_TCP_CONG_BBR2
+ FILES:=$(LINUX_DIR)/net/ipv4/tcp_bbr2.ko
+ AUTOLOAD:=$(call AutoLoad,74,tcp_bbr2)
+endef
+
+define KernelPackage/tcp-bbr2/description
+ Kernel module for BBRv2 (Bottleneck Bandwidth and RTT) TCP congestion
+ control. It requires the fq ("Fair Queue") pacing packet scheduler.
+ For kernel 4.13+, TCP internal pacing is implemented as fallback.
+endef
+
+$(eval $(call KernelPackage,tcp-bbr2))
+
define KernelPackage/tcp-nanqinlang
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=BBR NANQINLANG TCP congestion control

File diff suppressed because it is too large Load diff