From 37c228ada88b7fa0001659b13c34a783ba75df83 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 28 Mar 2022 16:56:01 +0200 Subject: 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 --- passt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passt.h') 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)) -- cgit v1.2.3