aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-19 02:04:43 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-19 02:04:43 +0200
commite5c941b9f8c579c9a29965256c863a63feb5bf5f (patch)
treeb4f3afc0d298989bd12bb8adab18e5de8515c534
parent964b7e12dab3ca0d13eac8ef6a141c613ec97c78 (diff)
downloadpasst-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar.gz
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar.bz2
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar.lz
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar.xz
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.tar.zst
passt-e5c941b9f8c579c9a29965256c863a63feb5bf5f.zip
passt: Increase TAP_BUF_BYTES to 256 maximum-sized descriptors
...this actually improves performance. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--passt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/passt.h b/passt.h
index 39bfb0f..649d4fc 100644
--- a/passt.h
+++ b/passt.h
@@ -45,7 +45,7 @@ union epoll_ref {
uint64_t u64;
};
-#define TAP_BUF_BYTES ((ETH_MAX_MTU + sizeof(uint32_t)) * 128)
+#define TAP_BUF_BYTES ((ETH_MAX_MTU + sizeof(uint32_t)) * 256)
#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))