mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
net: fix qemu_flush_queued_packets() in presence of a hub
Do not return after net_hub_flush(). Always flush callee network client incoming queue. Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
d60b20cf2a
commit
1597591cca
1 changed files with 0 additions and 1 deletions
|
@ -443,7 +443,6 @@ void qemu_flush_queued_packets(NetClientState *nc)
|
|||
if (net_hub_flush(nc->peer)) {
|
||||
qemu_notify_event();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (qemu_net_queue_flush(nc->incoming_queue)) {
|
||||
/* We emptied the queue successfully, signal to the IO thread to repoll
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue