diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-04-30 14:52:18 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-04-30 14:52:18 +0200 |
commit | e07f539ae0aa3ad623c4e8afcaca26906fd1eb17 (patch) | |
tree | 869fc954471b65f6659ca87d9068fd9143e87674 /util.h | |
parent | 605af213c5e0fa047f6d8caef5bcef61a0987c8d (diff) | |
download | passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar.gz passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar.bz2 passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar.lz passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar.xz passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.tar.zst passt-e07f539ae0aa3ad623c4e8afcaca26906fd1eb17.zip |
udp, passt: Introduce socket packet buffer, avoid getsockname() for UDP
This is in preparation for scatter-gather IO on the UDP receive path:
save a getsockname() syscall by setting a flag if we get the numbering
of all bound sockets in a strict sequence (expected, in practice) and
repurpose the tap buffer to be also a socket receive buffer, passing
it down to protocol handlers.
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
@@ -23,6 +23,7 @@ void debug(const char *format, ...); } while (0) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define IN_INTERVAL(a, b, x) ((x) >= (a) && (x) <= (b)) |