diff mbox

net: fix qemu_flush_queued_packets() in presence of a hub

Message ID 1383634469-24067-1-git-send-email-s.fedorov@samsung.com
State New
Headers show

Commit Message

Sergey Fedorov Nov. 5, 2013, 6:54 a.m. UTC
Do not return after net_hub_flush(). Always flush callee network client
incoming queue.

Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com>
---
 net/net.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Stefan Hajnoczi Nov. 5, 2013, 1:12 p.m. UTC | #1
On Tue, Nov 05, 2013 at 10:54:29AM +0400, Sergey Fedorov wrote:
> Do not return after net_hub_flush(). Always flush callee network client
> incoming queue.
> 
> Signed-off-by: Sergey Fedorov <s.fedorov@samsung.com>
> ---
>  net/net.c |    1 -
>  1 file changed, 1 deletion(-)

Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net

Stefan
diff mbox

Patch

diff --git a/net/net.c b/net/net.c
index c330c9a..aeb479b 100644
--- a/net/net.c
+++ b/net/net.c
@@ -442,7 +442,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