]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Linux: do not change --txqueuelen OS default if not configured.
authorGert Doering <gert@greenie.muc.de>
Mon, 29 Jun 2020 18:04:05 +0000 (20:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 29 Jun 2020 20:54:14 +0000 (22:54 +0200)
commit3ef858b3d63c61be2f473a8dc5f1f79fa09a85d8
treeaa1230bea7ec10258c603f04d903da8ca7a268d0
parent19d3c602e7a3881cf7c2244b7c40b9958c0b7ebc
Linux: do not change --txqueuelen OS default if not configured.

Remove default setting of "set txqueuelen to 100".  This default dates
back to the "pre git" times (before 2005) and might have been beneficial
back then - nowadays, the Linux default is 500, and thus reducing(!)
txqueuelen by-default can cause TX packet drops on the tun interface,
and that's bad for throughput.

This is a similar change to commit f0b64e5dc (remove setting of the
socket send/receive buffers by default) - similar vintage of the
existing code, similar motivation.

Note: buffer length can be checked with "ip link show" (qlen NNN)

See also:
  https://ivanvari.com/solving-openvpn-poor-throughput-and-packet-loss/

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20200629180405.17671-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20160.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c