mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
net_util: queue_pair: Remove -EAGAIN write warning
This warning isn't present on on the read case and we now have better handling of the -EAGAIN situation including retries. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b45264af75
commit
43f1a32859
@ -92,12 +92,12 @@ impl TxVirtio {
|
||||
iovecs.len() as libc::c_int,
|
||||
)
|
||||
};
|
||||
|
||||
if result < 0 {
|
||||
let e = std::io::Error::last_os_error();
|
||||
|
||||
/* EAGAIN */
|
||||
if e.kind() == std::io::ErrorKind::WouldBlock {
|
||||
warn!("net: tx: (recoverable) failed writing to tap: {}", e);
|
||||
queue.go_to_previous_position();
|
||||
retry_write = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user