aboutgitcodebugslistschat
path: root/tcp_vu.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-27 14:54:04 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-28 14:03:16 +0100
commitf9311031713ab8f18e9c872a42a8f6a9935954ec (patch)
tree7317269ecb51986e8afedb7dc03b9392d74df903 /tcp_vu.c
parent804a7ce94a14fbc4dee0a14b2c5f7a72ebb8bff6 (diff)
downloadpasst-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar.gz
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar.bz2
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar.lz
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar.xz
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.tar.zst
passt-f9311031713ab8f18e9c872a42a8f6a9935954ec.zip
iov: iov tail helpers
In the vhost-user code we have a number of places where we need to locate a particular header within the guest-supplied IO vector. We need to work out which buffer the header is in, and verify that it's contiguous and aligned as we need. At the moment this is open-coded, but introduce a helper to make this more straightforward. We add a new datatype 'struct iov_tail' representing an IO vector from which we've logically consumed some number of headers. The IOV_PULL_HEADER macro consumes a new header from the vector, returning a pointer and updating the iov_tail. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_vu.c')
0 files changed, 0 insertions, 0 deletions