tcp: Increase LOW_RTT_THRESHOLD to 10us

Sometimes we can get up to 6-7us minimum RTT for local connections too.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-05 19:33:37 +02:00
parent 78631ceb99
commit 371667fcfb

2
tcp.c
View file

@ -367,7 +367,7 @@
#define PORT_DETECT_INTERVAL 1000 #define PORT_DETECT_INTERVAL 1000
#define LOW_RTT_TABLE_SIZE 8 #define LOW_RTT_TABLE_SIZE 8
#define LOW_RTT_THRESHOLD 5 /* us */ #define LOW_RTT_THRESHOLD 10 /* us */
/* We need to include <linux/tcp.h> for tcpi_bytes_acked, instead of /* We need to include <linux/tcp.h> for tcpi_bytes_acked, instead of
* <netinet/tcp.h>, but that doesn't include a definition for SOL_TCP * <netinet/tcp.h>, but that doesn't include a definition for SOL_TCP