aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-08-04 01:28:21 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-08-04 01:28:21 +0200
commitc62490ffa8b9c41a109bce4cced45d8b0f555c5a (patch)
treed510b2ba14e35d22391af4353648605a932a782b /tcp.c
parentf57c2a72e4cd2976000aa1caabeace340852d035 (diff)
downloadpasst-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar.gz
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar.bz2
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar.lz
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar.xz
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.tar.zst
passt-c62490ffa8b9c41a109bce4cced45d8b0f555c5a.zip
tcp: Lower TCP_TAP_FRAMES to 32
Sending 64 frames in a batch looks quite bad when a duplicate ACK comes right at the beginning of it. Lowering this to 32 doesn't affect performance noticeably, with 16 the impact is more apparent. 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 7eef386..65a9aff 100644
--- a/tcp.c
+++ b/tcp.c
@@ -353,7 +353,7 @@
#define MAX_TAP_CONNS (128 * 1024)
#define MAX_SPLICE_CONNS (128 * 1024)
-#define TCP_TAP_FRAMES 64
+#define TCP_TAP_FRAMES 32
#define PIPE_SIZE (1024 * 1024)