mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +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,
|
iovecs.len() as libc::c_int,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
if result < 0 {
|
if result < 0 {
|
||||||
let e = std::io::Error::last_os_error();
|
let e = std::io::Error::last_os_error();
|
||||||
|
|
||||||
/* EAGAIN */
|
/* EAGAIN */
|
||||||
if e.kind() == std::io::ErrorKind::WouldBlock {
|
if e.kind() == std::io::ErrorKind::WouldBlock {
|
||||||
warn!("net: tx: (recoverable) failed writing to tap: {}", e);
|
|
||||||
queue.go_to_previous_position();
|
queue.go_to_previous_position();
|
||||||
retry_write = true;
|
retry_write = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user