aboutgitcodebugslistschat
path: root/test/lib
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2025-09-02 09:52:53 +0200
committerStefano Brivio <sbrivio@redhat.com>2025-09-03 20:43:51 +0200
commitca38be0141d17cbdd419fc49fb028a96612aa3b5 (patch)
tree0b4bdbb933ba7e6d0519a2beadf7e27162cfbf7b /test/lib
parent3e43e1a36c2cf138552bf6dc4666ff9fe6e00448 (diff)
downloadpasst-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar.gz
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar.bz2
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar.lz
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar.xz
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.tar.zst
passt-ca38be0141d17cbdd419fc49fb028a96612aa3b5.zip
packet: Add support for multi-vector packets
The packet pool was previously limited to handling packets contained within a single buffer. This patch extends the packet pool to support iovec array, allowing a single logical packet to be composed of multiple iovec. To accommodate this, the storage format within the pool is modified. For a multi-vector packet, a header entry is now stored first with iov_base = NULL and iov_len holding the number of subsequent vectors. The actual data vectors are then stored in the following pool slots. The packet_add_do() and packet_get_do() functions are updated to manage this new format for storing and retrieving packets. The pool_full() check is also adjusted to ensure there is enough space for all vectors of a new packet before adding it. 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