cloud-hypervisor/virtio-devices/src
Sebastien Boeuf 4ed0e1a3c8 net_util: Simplify TX/RX queue handling
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>
2021-02-22 10:39:23 +00:00
..
transport interrupt: Make notifier function return Option<EventFd> 2021-02-10 17:34:56 +00:00
vhost_user virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
vsock virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
balloon.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
block.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
console.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
device.rs interrupt: Make notifier function return Option<EventFd> 2021-02-10 17:34:56 +00:00
epoll_helper.rs virtio-devices: Acknowledge a device being paused 2020-08-13 14:52:18 +02:00
iommu.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
lib.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
mem.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
net_util.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
net.rs net_util: Simplify TX/RX queue handling 2021-02-22 10:39:23 +00:00
pmem.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
rng.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00
seccomp_filters.rs net_util: Simplify TX/RX queue handling 2021-02-22 10:39:23 +00:00
watchdog.rs virtio-devices: Report events for virtio device activation and reset 2021-02-18 16:15:13 +00:00