Skip to content

Commit

Permalink
net: fix qemu_flush_queued_packets() in presence of a hub
Browse files Browse the repository at this point in the history
Do not return after net_hub_flush(). Always flush callee network client
incoming queue.

Signed-off-by: Sergey Fedorov <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
Sergey Fedorov authored and stefanhaRH committed Nov 8, 2013
1 parent d60b20c commit 1597591
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1597591

Please sign in to comment.