diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-09-02 09:52:28 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-03 20:42:21 +0200 |
| commit | de469a3e85b06377762a52c82269ff3eaf2ae3ea (patch) | |
| tree | 1ddf1a544ca78b64cb8dbbd45d7f35c5dda6d69e /test | |
| parent | 720d8fc06946bef73ddb042c431a0c71bd6cf409 (diff) | |
| download | passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar.gz passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar.bz2 passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar.lz passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar.xz passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.tar.zst passt-de469a3e85b06377762a52c82269ff3eaf2ae3ea.zip | |
packet: Use iov_tail with packet_add()
Modify the interface of packet_add_do() to take an iov_tail
rather than a memory pointer and length.
Internally it only supports iovec array with only one entry,
after being pruned. We can accept iovec array with several
entries if the offset allows the function to reduce the number
of entries to 1.
tap4_handler() is updated to create an iov_tail value using
IOV_TAIL_FROM_BUF() from the buffer and the length.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
