aboutgitcodebugslistschat
path: root/packet.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-07 13:42:50 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-07 09:54:21 +0100
commit515db1ecc4afd8d2a75ffdea031dd71aa6821342 (patch)
tree4a9c85bb13808bd5599db3a512e219b434310c78 /packet.c
parent7486cd13af311a5fd429a69ea5fe04f43cd78b49 (diff)
downloadpasst-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar.gz
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar.bz2
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar.lz
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar.xz
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.tar.zst
passt-515db1ecc4afd8d2a75ffdea031dd71aa6821342.zip
tcp_splice: Simplify selection of socket and pipe sides in socket handler
tcp_splice_sock_handler() uses the tcp_splice_dir() helper to select which of the socket, pipe and counter fields to use depending on which side of the connection the socket event is coming from. Now that we are using arrays for the two sides, rather than separate named fields, we can instead just use a variable indicating the side and use that to index the arrays whever we need a particular side's field. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'packet.c')
0 files changed, 0 insertions, 0 deletions