diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2026-05-20 11:55:26 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-26 12:17:07 +0200 |
| commit | dec66c02b5e43e0ef809afa47e1008e143a01250 (patch) | |
| tree | 05244ad5363976e659f683d92c5fbf7cc5a1c32b /test/lib | |
| parent | 9361b6bab7b7e661b1a4a6b4847800e82dad0224 (diff) | |
| download | passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar.gz passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar.bz2 passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar.lz passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar.xz passt-dec66c02b5e43e0ef809afa47e1008e143a01250.tar.zst passt-dec66c02b5e43e0ef809afa47e1008e143a01250.zip | |
udp: Pass iov_tail to udp_update_hdr4()/udp_update_hdr6()
Change udp_update_hdr4() and udp_update_hdr6() to take an iov_tail
pointing at the UDP frame instead of a contiguous udp_payload_t buffer
and explicit data length. This lets vhost-user pass scatter-gather
virtqueue buffers directly without an intermediate copy.
The UDP header is built into a local struct udphdr and written back with
IOV_PUSH_HEADER(). On the tap side, udp_tap_prepare() wraps the
existing udp_payload_t in a two-element iov to match the new interface.
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
