diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-09-02 09:52:25 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-03 20:42:15 +0200 |
| commit | 066e6b1dc52a5f37feb6915fbda080eb29e042f3 (patch) | |
| tree | 345de74783891a572a032e1e5a02e39576a743a4 /test/lib | |
| parent | ea3dd28b546104c6bd4b4a4156d32d4f57b3d0cb (diff) | |
| download | passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar.gz passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar.bz2 passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar.lz passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar.xz passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.tar.zst passt-066e6b1dc52a5f37feb6915fbda080eb29e042f3.zip | |
iov: Introduce iov_tail_clone() and iov_drop_header().
These utilities enhance iov_tail manipulation, useful for
efficient packet processing by enabling iovec array cloning and
header stripping without data copies.
- iov_drop_header(): Discards a specified number of bytes from the
beginning of an iov_tail by advancing its internal offset and pruning
consumed elements.
- iov_tail_clone(): Clone an iov_tail into an iovec array, adjusting the
first iovec entry to remove the iov_tail offset.
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/lib')
0 files changed, 0 insertions, 0 deletions
