Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/devices/src/virtio/net/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ impl NetWorker {
Err(TxError::Backend(WriteError::NothingWritten)) => true,
Err(e) => {
log::error!("Failed to process tx: {e:?}");
false
// Break immediately on non-recoverable errors to avoid a
// busy-loop when the guest keeps supplying TX buffers.
// The worker will be re-entered on the next TX queue kick
// or backend-writable event.
break;
}
_ => false,
};
Expand Down
Loading