mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-20 06:51:15 +00:00
The main idea behind this commit is to remove all the complexity associated with TX/RX handling for virtio-net. By using writev() and readv() syscalls, we could get rid of intermediate buffers for both queues. The complexity regarding the TAP registration has been simplified as well. The RX queue is only processed when some data are ready to be read from TAP. The event related to the RX queue getting more descriptors only serves the purpose to register the TAP file if it's not already. With all these simplifications, the code is more readable but more performant as well. We can see an improvement of 10% for a single queue device. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
lib.rs | ||
main.rs |