diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-07 13:42:49 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-11-07 09:54:19 +0100 |
commit | 7486cd13af311a5fd429a69ea5fe04f43cd78b49 (patch) | |
tree | 39c37e49e4596b85f450280e946e0bda070909a8 /pasta.c | |
parent | 69db3b3b2943ab791786dccc2f35a0284e0a531d (diff) | |
download | passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar.gz passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar.bz2 passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar.lz passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar.xz passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.tar.zst passt-7486cd13af311a5fd429a69ea5fe04f43cd78b49.zip |
tcp_splice: Exploit side symmetry in tcp_splice_destroy()
tcp_splice_destroy() has some close-to-duplicated logic handling closing of
the socket and pipes for each side of the connection. We can use a loop
across the sides to reduce the duplication.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions