passt: Increase TAP_BUF_BYTES to 256 maximum-sized descriptors

...this actually improves performance.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-09-19 02:04:43 +02:00
parent 964b7e12da
commit e5c941b9f8

View file

@ -45,7 +45,7 @@ union epoll_ref {
uint64_t u64; 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_BUF_FILL (TAP_BUF_BYTES - ETH_MAX_MTU - sizeof(uint32_t))
#define TAP_MSGS \ #define TAP_MSGS \
DIV_ROUND_UP(TAP_BUF_BYTES, ETH_ZLEN - 2 * ETH_ALEN + sizeof(uint32_t)) DIV_ROUND_UP(TAP_BUF_BYTES, ETH_ZLEN - 2 * ETH_ALEN + sizeof(uint32_t))