mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-30 16:35:31 +00:00
vm-virtio: net: Remove attributes for test exclusions
Now that the tests are in use this import and function is used. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
af15ce9dc3
commit
7499210d0c
@ -9,7 +9,6 @@ use epoll;
|
||||
use libc::EAGAIN;
|
||||
use libc::EFD_NONBLOCK;
|
||||
use std::cmp;
|
||||
#[cfg(not(test))]
|
||||
use std::io::Read;
|
||||
use std::io::{self, Write};
|
||||
use std::mem;
|
||||
@ -296,7 +295,6 @@ impl NetEpollHandler {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(not(test))]
|
||||
fn read_tap(&mut self) -> io::Result<usize> {
|
||||
self.tap.read(&mut self.rx.frame_buf)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user