aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-05-13 13:52:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-20 01:21:47 +0200
commitd83470f8b149c1108d884648d58fcdacd9ed781c (patch)
tree12718127abd4a0b41d048c1887d9178d505d8c8a /test
parent533ef11ecb4edd98c7adad3b51c40fdcc2f0671d (diff)
downloadpasst-d83470f8b149c1108d884648d58fcdacd9ed781c.tar
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.tar.gz
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.tar.bz2
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.tar.lz
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.tar.xz
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.tar.zst
passt-d83470f8b149c1108d884648d58fcdacd9ed781c.zip
vu_common: Pass explicit frame length to vu_flush()
Currently vu_flush() derives the frame size from the iov, but in preparation for iov arrays that may be larger than the actual frame, pass the total length (including vnet header) explicitly so that only the relevant portion is reported to the virtqueue. Ensure a minimum frame size of ETH_ZLEN + VNET_HLEN to handle short frames. All elements are still flushed to avoid descriptor leaks, but trailing elements beyond frame_len will report a zero length. 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')
0 files changed, 0 insertions, 0 deletions