aboutgitcodebugslistschat
path: root/passt.h
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 /passt.h
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 'passt.h')
-rw-r--r--passt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/passt.h b/passt.h
index 7d40c6f..69e334d 100644
--- a/passt.h
+++ b/passt.h
@@ -63,7 +63,7 @@ union epoll_ref {
};
#define TAP_BUF_BYTES \
- ROUND_DOWN(((ETH_MAX_MTU + sizeof(uint32_t)) * 256), PAGE_SIZE)
+ ROUND_DOWN(((ETH_MAX_MTU + sizeof(uint32_t)) * 128), PAGE_SIZE)
#define TAP_BUF_FILL (TAP_BUF_BYTES - ETH_MAX_MTU - sizeof(uint32_t))
#define TAP_MSGS \
DIV_ROUND_UP(TAP_BUF_BYTES, ETH_ZLEN - 2 * ETH_ALEN + sizeof(uint32_t))