aboutgitcodebugslistschat
path: root/test/tcp/git:
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-05-20 11:55:24 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-26 12:16:03 +0200
commit28ee143d92df5fd779a3f16b3f2717ab478584da (patch)
tree507ec06013029d5aa3896c4018ca2028661255a5 /test/tcp/git:
parent76fd54667ee516e7d6a7ff59befb4a00895b9863 (diff)
downloadpasst-28ee143d92df5fd779a3f16b3f2717ab478584da.tar
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.tar.gz
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.tar.bz2
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.tar.lz
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.tar.xz
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.tar.zst
passt-28ee143d92df5fd779a3f16b3f2717ab478584da.zip
udp_vu: Allow virtqueue elements with multiple iovec entries
The previous code assumed a 1:1 mapping between virtqueue elements and iovec entries (enforced by an assert). Drop that assumption to allow elements that span multiple iovecs: track elem_used separately by walking the element list against the iov count returned after padding. This also fixes vu_queue_rewind() and vu_flush() to use the element count rather than the iov count. Use iov_tail_clone() in udp_vu_sock_recv() to handle header offset, replacing the manual base/len adjustment and restore pattern. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Jon Maloy <jmaloy@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp/git:')
0 files changed, 0 insertions, 0 deletions