diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-11-30 15:13:03 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-12-06 07:41:22 +0100 |
commit | 9ef31b7619b45e3b109d17c5f79f4231d0f6e67b (patch) | |
tree | 720244d7cef0afc8a62b78ff932c0088f7d03a37 /test/perf | |
parent | 729edc241d04d64dcd5804ab7bc5c2735b7aaf48 (diff) | |
download | passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar.gz passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar.bz2 passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar.lz passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar.xz passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.tar.zst passt-9ef31b7619b45e3b109d17c5f79f4231d0f6e67b.zip |
udp: Always use sendto() rather than send() for forwarding spliced packets
udp_sock_handler_splice() has two different ways of sending out packets
once it has determined the correct destination socket. For the originating
sockets (which are not connected) it uses sendto() to specify a specific
address. For the forward socket (which is connected) we use send().
However we know the correct destination address even for the forward socket
we do also know the correct destination address. We can use this to use
sendto() instead of send(), removing the need for two different paths and
some staging data structures.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/perf')
0 files changed, 0 insertions, 0 deletions