aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-28 16:56:01 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-03-29 15:35:38 +0200
commit37c228ada88b7fa0001659b13c34a783ba75df83 (patch)
tree8322a8de553fdf30f89fed48e985547316a01964 /udp.c
parent1f4b7fa0d75d25f518047e77c88718ec1cc3f5bb (diff)
downloadpasst-37c228ada88b7fa0001659b13c34a783ba75df83.tar
passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.gz
passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.bz2
passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.lz
passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.xz
passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.zst
passt-37c228ada88b7fa0001659b13c34a783ba75df83.zip
tap, tcp, udp, icmp: Cut down on some oversized buffers
The existing sizes provide no measurable differences in throughput and packet rates at this point. They were probably needed as batched implementations were not complete, but they can be decreased quite a bit now. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udp.c b/udp.c
index 2cdbe6c..1c0fdc6 100644
--- a/udp.c
+++ b/udp.c
@@ -117,8 +117,8 @@
#include "pcap.h"
#define UDP_CONN_TIMEOUT 180 /* s, timeout for ephemeral or local bind */
-#define UDP_SPLICE_FRAMES 128
-#define UDP_TAP_FRAMES_MEM 128
+#define UDP_SPLICE_FRAMES 32
+#define UDP_TAP_FRAMES_MEM 32
#define UDP_TAP_FRAMES (c->mode == MODE_PASST ? UDP_TAP_FRAMES_MEM : 1)
/**