summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSergey Fedorov <s.fedorov@samsung.com>2013-11-05 10:54:29 +0400
committerStefan Hajnoczi <stefanha@redhat.com>2013-11-08 17:32:34 +0100
commit1597591cca8a8fa20b8872937b859ec2aaccba6c (patch)
tree472f8750b67a644bf62c84eb36944e7fc05b8031 /net
parentd60b20cf2ae6644b05159b9361cba83fb6c0cb84 (diff)
downloadqemu-1597591cca8a8fa20b8872937b859ec2aaccba6c.tar.gz
qemu-1597591cca8a8fa20b8872937b859ec2aaccba6c.tar.bz2
qemu-1597591cca8a8fa20b8872937b859ec2aaccba6c.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 870d3bbcee..0a88e68253 100644
--- 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