aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-05 19:33:37 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-05 20:02:03 +0200
commit371667fcfb3f92593358cdfd3cd13b7fb5fe6a29 (patch)
tree8dcbde0f9d1f3463d4c53f089d4cd8825c213c9d
parent78631ceb990ad10ce7f9c6a1f154c2edf0950870 (diff)
downloadpasst-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar.gz
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar.bz2
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar.lz
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar.xz
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.tar.zst
passt-371667fcfb3f92593358cdfd3cd13b7fb5fe6a29.zip
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>
-rw-r--r--tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index d42e9ab..bdd3260 100644
--- a/tcp.c
+++ b/tcp.c
@@ -367,7 +367,7 @@
#define PORT_DETECT_INTERVAL 1000
#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
* <netinet/tcp.h>, but that doesn't include a definition for SOL_TCP