diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-19 02:04:43 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-19 02:04:43 +0200 |
commit | e5c941b9f8c579c9a29965256c863a63feb5bf5f (patch) | |
tree | b4f3afc0d298989bd12bb8adab18e5de8515c534 | |
parent | 964b7e12dab3ca0d13eac8ef6a141c613ec97c78 (diff) | |
download | passt-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |