diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-02-19 18:56:50 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-02-27 12:52:46 +0100 |
commit | fe27ebce5c59c7fc684c5affa6ce27fdc32d362d (patch) | |
tree | 903b8e243ebc30e0ae2abe578d3fb220249107d8 /pcap.c | |
parent | fbe81decbdcdfed4b4ff336fcec5fe6ad0dfbe65 (diff) | |
download | passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar.gz passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar.bz2 passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar.lz passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar.xz passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.tar.zst passt-fe27ebce5c59c7fc684c5affa6ce27fdc32d362d.zip |
tcp, tcp_splice: Helpers for getting sockets from the pools
We maintain pools of ready-to-connect sockets in both the original and
(for pasta) guest namespace to reduce latency when starting new TCP
connections. If we exhaust those pools we have to take a higher
latency path to get a new socket.
Currently we open-code that fallback in the places we need it. To improve
clarity encapsulate that into helper functions. While we're at it, give
those helpers clearer error reporting.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pcap.c')
0 files changed, 0 insertions, 0 deletions