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:
parent
9d7055bac6
commit
06bdeb4130
3 changed files with 3405 additions and 0 deletions
7
build.sh
7
build.sh
|
@ -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
27
patches/bbr2.patch
Normal 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
|
3371
root/target/linux/generic/hack-5.4/693-tcp_bbr2.patch
Normal file
3371
root/target/linux/generic/hack-5.4/693-tcp_bbr2.patch
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue