net: fix qemu_flush_queued_packets() in presence of a hub
authorSergey Fedorov <s.fedorov@samsung.com>
Tue, 5 Nov 2013 06:54:29 +0000 (10:54 +0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 8 Nov 2013 16:32:34 +0000 (17:32 +0100)
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>
net/net.c

index 870d3bbceef6822b3e18e0c3a30d5d920bb8f1da..0a88e68253f59a94208ed84099aa55d2dbd2c448 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -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