diff --git a/Cargo.lock b/Cargo.lock index 0e17d62f53..a0d8949010 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1908,6 +1908,7 @@ dependencies = [ name = "virtio-netd" version = "0.1.0" dependencies = [ + "common", "futures", "log", "netutils", diff --git a/virtio-netd/Cargo.toml b/virtio-netd/Cargo.toml index f4a116f10c..3458d7b046 100644 --- a/virtio-netd/Cargo.toml +++ b/virtio-netd/Cargo.toml @@ -10,6 +10,7 @@ futures = { version = "0.3.28", features = ["executor"] } virtio-core = { path = "../virtio-core" } pcid = { path = "../pcid" } +common = { path = "../common" } redox-daemon = "0.1" redox_syscall = "0.3" diff --git a/virtio-netd/src/scheme.rs b/virtio-netd/src/scheme.rs index 251a501ce0..c535d7a886 100644 --- a/virtio-netd/src/scheme.rs +++ b/virtio-netd/src/scheme.rs @@ -8,6 +8,8 @@ use syscall::*; use virtio_core::spec::{Buffer, ChainBuilder, DescriptorFlags}; use virtio_core::transport::Queue; +use common::dma::Dma; + use crate::{VirtHeader, MAX_BUFFER_LEN}; pub struct NetworkScheme<'a> {