net_util, virtio-devices, vhost_user_net: Relocate {Rx,Tx}Virtio

By moving the code for opening the two RX and TX queues into a shared
location we are starting to remove the requirement for the
vhost-user-net backend to depend on the virtio-devices crate which in of
itself depends on many other crates that are not necessary for the
backend to function.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-07-07 15:02:18 +01:00
parent 2efd307c4e
commit 48faf3abac
7 changed files with 208 additions and 190 deletions

3
Cargo.lock generated
View File

@@ -633,12 +633,15 @@ version = "0.1.0"
dependencies = [
"lazy_static",
"libc",
"log 0.4.8",
"net_gen",
"pnet",
"rand 0.7.3",
"serde",
"serde_json",
"virtio-bindings",
"vm-memory",
"vm-virtio",
"vmm-sys-util",
]