aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-19 02:40:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-27 01:28:02 +0200
commit522878e6bba953a45f5c2be456125fe0c553f8b0 (patch)
tree3a13d08a0da13f6e48033a6567a4a5122d665873 /tcp.c
parente9961cecfca3e53c568876f5e0f233c0a401dd85 (diff)
downloadpasst-522878e6bba953a45f5c2be456125fe0c553f8b0.tar
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.tar.gz
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.tar.bz2
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.tar.lz
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.tar.xz
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.tar.zst
passt-522878e6bba953a45f5c2be456125fe0c553f8b0.zip
tcp: Decrease TCP_TAP_FRAMES to 8
This significantly improves fairness in serving concurrent connections. 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 ac93214..645d525 100644
--- a/tcp.c
+++ b/tcp.c
@@ -349,7 +349,7 @@
#define MAX_TAP_CONNS (128 * 1024)
#define MAX_SPLICE_CONNS (128 * 1024)
-#define TCP_TAP_FRAMES 32
+#define TCP_TAP_FRAMES 8
#define PIPE_SIZE (1024 * 1024)