From 1597591cca8a8fa20b8872937b859ec2aaccba6c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 5 Nov 2013 10:54:29 +0400 Subject: 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 Signed-off-by: Stefan Hajnoczi --- net/net.c | 1 - 1 file changed, 1 deletion(-) (limited to 'net') 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 -- cgit v1.2.3