aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-07-21 12:05:03 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-07-21 12:05:03 +0200
commit1642a04f484bfd7ea92d63d0ad6bfb3046f0c206 (patch)
treebc9b05c4ff8190200603de24836a2f8807eef908 /tcp.c
parent64a0ba3b272dd9ee175e0c6256a6d0cb1733599b (diff)
downloadpasst-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar.gz
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar.bz2
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar.lz
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar.xz
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.tar.zst
passt-1642a04f484bfd7ea92d63d0ad6bfb3046f0c206.zip
tcp: Increase maximum window scaling factor from 8 to 9
This is actually reasonable in terms of memory consumption and allows for better performance with local services. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index 86cb92c..58af89f 100644
--- a/tcp.c
+++ b/tcp.c
@@ -357,7 +357,7 @@
#define TCP_HASH_TABLE_SIZE (MAX_TAP_CONNS * 100 / \
TCP_HASH_TABLE_LOAD)
-#define MAX_WS 8
+#define MAX_WS 9
#define MAX_WINDOW (1 << (16 + (MAX_WS)))
#define MSS_DEFAULT 536
#define WINDOW_DEFAULT 14600 /* RFC 6928 */