1
0
mirror of https://passt.top/passt synced 2024-12-22 13:45:32 +00:00

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>
This commit is contained in:
Stefano Brivio 2021-07-21 12:05:03 +02:00
parent 64a0ba3b27
commit 1642a04f48

2
tcp.c
View File

@ -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 */