cloud-hypervisor/vhost_user_net
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
..
src net_util: Simplify TX/RX queue handling 2021-02-22 10:39:23 +00:00
Cargo.toml build(deps): bump vm-memory from 0.4.0 to 0.5.0 2021-02-10 11:30:05 +00:00