cloud-hypervisor/net_util/src
Sebastien Boeuf a4859ffe85 virtio-devices: Optimize add_used() usage
Now that we rely on pop_descriptor_chain() rather than iter() to iterate
over a queue, there's no more borrow on the queue itself, meaning we can
invoke add_used() directly for the iteration loop. This simplifies the
processing of the queues for each virtio device, and bring some possible
performance improvement given we don't have to iterate twice over the
list of descriptors to invoke add_used().

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2022-07-29 17:41:32 +01:00
..
ctrl_queue.rs virtio-devices: Optimize add_used() usage 2022-07-29 17:41:32 +01:00
lib.rs net_util: switch from lazy_static to once_cell 2022-06-20 16:03:07 +01:00
mac.rs build: Fix beta clippy issue (derive_partial_eq_without_eq) 2022-06-30 20:50:45 +01:00
open_tap.rs misc: Remove unused errors from public interface 2021-05-11 13:37:19 +02:00
queue_pair.rs virtio-devices: Optimize add_used() usage 2022-07-29 17:41:32 +01:00
tap.rs net_util: Don't expect the interface to be IFF_RUNNING 2022-07-05 16:35:58 +01:00