diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-02-14 10:48:19 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-02-14 17:24:40 +0100 |
commit | e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac (patch) | |
tree | b2cfcae609e7bf03c0438f40e11cac05f3eda5b5 /icmp.c | |
parent | ee8353cd646b35a7081217c82503783c1fc96c2c (diff) | |
download | passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar.gz passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar.bz2 passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar.lz passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar.xz passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.tar.zst passt-e456c1ccdc846ac6ee479b5dcb27a0d2f47400ac.zip |
tcp: Make a helper to refill each socket pool
tcp_sock_refill() contains two near-identical loops to refill the IPv4
and IPv6 socket pools. In addition, if we get an error on the IPv4
pool we exit early and won't attempt to refill the IPv6 pool. At
least theoretically, these are independent from each other and there's
value to filling up either pool without the other. So, there's no
strong reason to give up on one because the other failed.
Address both of these with a helper function 'tcp_sock_refill_pool()' to
refill a single given pool.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'icmp.c')
0 files changed, 0 insertions, 0 deletions