vm-virtio: Create new module to abstract common parts for net devices

There are some common logic shared among virtio-net device, vhost-user-net
device and vhost-user-net backend, abstract those parts into net_util.rs
to improve code maintainability and readability.

Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
This commit is contained in:
Cathy Zhang
2020-01-09 19:54:40 +08:00
committed by Sebastien Boeuf
parent 3485e89080
commit 6ae2597d19
2 changed files with 224 additions and 0 deletions
+2
View File
@@ -30,6 +30,7 @@ pub mod block;
mod console;
mod iommu;
pub mod net;
pub mod net_util;
mod pmem;
mod queue;
mod rng;
@@ -43,6 +44,7 @@ pub use self::console::*;
pub use self::device::*;
pub use self::iommu::*;
pub use self::net::*;
pub use self::net_util::*;
pub use self::pmem::*;
pub use self::queue::*;
pub use self::rng::*;