1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-13 11:05:34 +02:00

tap: Increase amount of tap receive buffers to 128

...boom. To make it slightly more reasonable, shrink struct tap_msg
down a bit, and move the main message array away from the stack of
tap_handler_passt().

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-07-27 00:48:06 +02:00
parent 8af961b85b
commit d372c42460
2 changed files with 13 additions and 12 deletions

View file

@ -11,8 +11,8 @@
struct tap_msg {
char *start;
char *l4h;
size_t len;
size_t l4_len;
uint16_t len;
uint16_t l4_len;
};
union epoll_ref;
@ -45,7 +45,7 @@ union epoll_ref {
uint64_t u64;
};
#define TAP_BUF_BYTES (ETH_MAX_MTU * 3)
#define TAP_BUF_BYTES (ETH_MAX_MTU * 128)
#define TAP_BUF_FILL (TAP_BUF_BYTES - ETH_MAX_MTU - sizeof(uint32_t))
#define TAP_MSGS (TAP_BUF_BYTES / sizeof(struct ethhdr) + 1)