vm-virtio: net: Prepare NetQueuePair for use in vhost-user-net

This requires exposing the struct members and also using Option<..>
types for the main epoll fd and the memory as they are initialised later
in vhost-user-net.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-05-29 15:13:31 +01:00
committed by Sebastien Boeuf
parent 2dbd11864e
commit fcc62efc41
2 changed files with 29 additions and 20 deletions

View File

@@ -190,4 +190,5 @@ pub enum Error {
EventfdError(io::Error),
SetShmRegionsNotSupported,
EpollHander(String),
NoMemoryConfigured,
}