aboutgitcodebugslistschat
path: root/siphash.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-06-14 11:51:06 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-06-14 12:11:39 +0200
commit63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe (patch)
treed847fc9e484a0497c44e1fce1be9f8472108ad4c /siphash.h
parent523fbc5af70fabb99a56b6ae8abf52770b59cd24 (diff)
downloadpasst-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar.gz
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar.bz2
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar.lz
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar.xz
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.tar.zst
passt-63db7dcdbf4f8d528a6c04f73c338a686ad8a5fe.zip
udp: Fold checking of splice flag into udp_mmh_splice_port()
udp_mmh_splice_port() is used to determine if a UDP datagram can be "spliced" (forwarded via a socket instead of tap). We only invoke it if the origin socket has the 'splice' flag set. Fold the checking of the flag into the helper itself, which makes the caller simpler. It does mean we have a loop looking for a batch of spliceable or non-spliceable packets even in the case where the flag is clear. This shouldn't be that expensive though, since each call to udp_mmh_splice_port() will return without accessing memory in that case. In any case we're going to need a similar loop in more cases with upcoming flow table work. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'siphash.h')
0 files changed, 0 insertions, 0 deletions