diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-26 23:19:40 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 01:28:02 +0200 |
commit | 2dbed699e78ed3393ac97a64b04581974070afed (patch) | |
tree | 509f88c1caf3ca359408656983201ea15eeafd37 /util.h | |
parent | cc8db1c5bcca6d84e7bd3ba7e0a5108b62937578 (diff) | |
download | passt-2dbed699e78ed3393ac97a64b04581974070afed.tar passt-2dbed699e78ed3393ac97a64b04581974070afed.tar.gz passt-2dbed699e78ed3393ac97a64b04581974070afed.tar.bz2 passt-2dbed699e78ed3393ac97a64b04581974070afed.tar.lz passt-2dbed699e78ed3393ac97a64b04581974070afed.tar.xz passt-2dbed699e78ed3393ac97a64b04581974070afed.tar.zst passt-2dbed699e78ed3393ac97a64b04581974070afed.zip |
passt: Align pkt_buf to PAGE_SIZE (start and size), try to fit in huge pages
If transparent huge pages are available, madvise() will do the trick.
While at it, decrease EPOLL_EVENTS for the main loop from 10 to 8,
for slightly better socket fairness.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ void debug(const char *format, ...); #endif #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) +#define ROUND_DOWN(x, y) ((x) & ~((y) - 1)) #define SWAP(a, b) \ do { \ |