diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-01-05 15:26:23 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-01-13 01:07:06 +0100 |
commit | 8a10f23720682ada5eb5f849404b193efbae6409 (patch) | |
tree | a93ed0671b8bad14e2a1e81c184ca1642d186b34 /tcp.c | |
parent | f1ed8dbfa732dd0c94461373fbcaea86b9eb1734 (diff) | |
download | passt-8a10f23720682ada5eb5f849404b193efbae6409.tar passt-8a10f23720682ada5eb5f849404b193efbae6409.tar.gz passt-8a10f23720682ada5eb5f849404b193efbae6409.tar.bz2 passt-8a10f23720682ada5eb5f849404b193efbae6409.tar.lz passt-8a10f23720682ada5eb5f849404b193efbae6409.tar.xz passt-8a10f23720682ada5eb5f849404b193efbae6409.tar.zst passt-8a10f23720682ada5eb5f849404b193efbae6409.zip |
udp: Unify udp_sock_handler_splice() with udp_sock_handler()
These two functions now have a very similar structure, and their first
part (calling recvmmsg()) is functionally identical. So, merge the two
functions into one.
This does have the side effect of meaning we no longer receive multiple
packets at once for splice (we already didn't for tap). This does hurt
throughput for small spliced packets, but improves it for large spliced
packets and tap packets.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
0 files changed, 0 insertions, 0 deletions