]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysctl.d: request ECN on both in and outgoing connections 9143/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 31 May 2018 06:33:08 +0000 (08:33 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 31 May 2018 06:43:03 +0000 (08:43 +0200)
To further avoid bufferbloat Explicit Congestion Notification (ECN)
should be enabled for both in and outgoing connections. The kernel
default is to enable it when requested for incoming connections, but
not to request it on outgoing connections. This patch enables it for
both.

A long time ago enabling these was causing problems, but these issues
have since been dealt with.

For issue #9087

sysctl.d/50-default.conf

index e263cf06284a98a2fb402767b023f20ab9eb9808..b67ae87ca6b75523017ab281f63991bc7e975224 100644 (file)
@@ -33,6 +33,9 @@ net.ipv4.conf.all.promote_secondaries = 1
 # Fair Queue CoDel packet scheduler to fight bufferbloat
 net.core.default_qdisc = fq_codel
 
+# Request Explicit Congestion Notification (ECN) on both in and outgoing connections
+net.ipv4.tcp_ecn = 1
+
 # Enable hard and soft link protection
 fs.protected_hardlinks = 1
 fs.protected_symlinks = 1