File tree Expand file tree Collapse file tree 3 files changed +436
-0
lines changed
src/vmm/src/devices/virtio Expand file tree Collapse file tree 3 files changed +436
-0
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,17 @@ pub mod device;
21
21
mod event_handler;
22
22
pub mod metrics;
23
23
pub mod persist;
24
+ pub mod rx_buffer;
24
25
mod tap;
25
26
pub mod test_utils;
26
27
27
28
mod gen;
28
29
29
30
pub use tap:: { Tap , TapError } ;
31
+ use vm_memory:: VolatileMemoryError ;
30
32
31
33
pub use self :: device:: Net ;
34
+ use self :: rx_buffer:: RxBufferError ;
32
35
33
36
/// Enum representing the Net device queue types
34
37
#[ derive( Debug ) ]
@@ -50,6 +53,10 @@ pub enum NetError {
50
53
EventFd ( io:: Error ) ,
51
54
/// IO error: {0}
52
55
IO ( io:: Error ) ,
56
+ /// Error writing in guest memory: {0}
57
+ GuestMemoryError ( #[ from] VolatileMemoryError ) ,
53
58
/// The VNET header is missing from the frame
54
59
VnetHeaderMissing ,
60
+ /// RxBuffer error: {0}
61
+ RxBufferError ( #[ from] RxBufferError ) ,
55
62
}
You can’t perform that action at this time.
0 commit comments