aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-07-27 00:48:06 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-07-27 00:48:06 +0200
commitd372c42460a56ecb9dfdc80f861f2e6a925ba25b (patch)
tree22eb667de548ffdf64a3846ff9a23934f266595c /passt.h
parent8af961b85bbfd48f4304851bcd42f106fa447bb9 (diff)
downloadpasst-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar.gz
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar.bz2
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar.lz
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar.xz
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.tar.zst
passt-d372c42460a56ecb9dfdc80f861f2e6a925ba25b.zip
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>
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/passt.h b/passt.h
index f5ecb0c..e3f570b 100644
--- a/passt.h
+++ b/passt.h
@@ -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)