File tree Expand file tree Collapse file tree 3 files changed +435
-0
lines changed 
src/vmm/src/devices/virtio Expand file tree Collapse file tree 3 files changed +435
-0
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,17 @@ pub mod device;
2121mod  event_handler; 
2222pub  mod  metrics; 
2323pub  mod  persist; 
24+ pub  mod  rx_buffer; 
2425mod  tap; 
2526pub  mod  test_utils; 
2627
2728mod  gen; 
2829
2930pub  use  tap:: { Tap ,  TapError } ; 
31+ use  vm_memory:: VolatileMemoryError ; 
3032
3133pub  use  self :: device:: Net ; 
34+ use  self :: rx_buffer:: RxBufferError ; 
3235
3336/// Enum representing the Net device queue types 
3437#[ derive( Debug ) ]  
@@ -50,6 +53,10 @@ pub enum NetError {
5053     EventFd ( io:: Error ) , 
5154    /// IO error: {0} 
5255     IO ( io:: Error ) , 
56+     /// Error writing in guest memory: {0} 
57+      GuestMemoryError ( #[ from]   VolatileMemoryError ) , 
5358    /// The VNET header is missing from the frame 
5459     VnetHeaderMissing , 
60+     /// RxBuffer error: {0} 
61+      RxBufferError ( #[ from]   RxBufferError ) , 
5562} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments