Commit 1597591c authored by Sergey Fedorov's avatar Sergey Fedorov Committed by Stefan Hajnoczi
Browse files

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: default avatarSergey Fedorov <s.fedorov@samsung.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent d60b20cf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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