linux: enable TCP_CONG_ADVANCED

TCP_CONG_ADVANCED is enabled by default on x86_64[1] in the upstream.
Although it is not the case for aarch64[2], many distributions, such as
Debian[3], Fedora[4] and Gentoo[5], choose to enable it in their
distribution kernel.

With this patch, aarch64 users can choose many other TCP congestion
algorithms, which may improve their network performance.

[1]: 7ddb58cb0e/arch/x86/configs/x86_64_defconfig (L71)
[2]: 7ddb58cb0e/arch/arm64/configs/defconfig
[3]: e2d14375d7/debian/config/config (L7063)
[4]: 836165dd2d/f/kernel-aarch64-fedora.config
[5]: 5808eb2f06/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.77.ebuild (L27)
This commit is contained in:
linj 2021-11-04 18:54:34 +08:00
parent 642292c85d
commit 555aa76120

View file

@ -129,6 +129,7 @@ let
XDP_SOCKETS = whenAtLeast "4.19" yes;
XDP_SOCKETS_DIAG = whenAtLeast "5.1" yes;
WAN = yes;
TCP_CONG_ADVANCED = yes;
TCP_CONG_CUBIC = yes; # This is the default congestion control algorithm since 2.6.19
# Required by systemd per-cgroup firewalling
CGROUP_BPF = option yes;