diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hw/virtio/vhost_net.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hw/virtio/vhost_net.rs b/src/hw/virtio/vhost_net.rs index e1304f1..8e4c5f9 100644 --- a/src/hw/virtio/vhost_net.rs +++ b/src/hw/virtio/vhost_net.rs @@ -13,7 +13,7 @@ use std::thread::spawn; use net_sys; use net_util::{Tap, Error as TapError}; use sys_util::{Error as SysError, EventFd, GuestMemory, Poller}; -use vhost::{VhostNet as VhostNetHandle, Error as VhostError}; +use vhost::{Error as VhostError, Net as VhostNetHandle, Vhost}; use virtio_sys::{vhost, virtio_net}; use virtio_sys::virtio_net::virtio_net_hdr_mrg_rxbuf; @@ -131,7 +131,7 @@ impl Worker { .set_vring_kick(queue_index, &queue_evts[queue_index]) .map_err(VhostNetError::VhostSetVringKick)?; self.vhost_net_handle - .net_set_backend(queue_index, &self.tap) + .set_backend(queue_index, &self.tap) .map_err(VhostNetError::VhostNetSetBackend)?; } |