net: fix qemu_flush_queued_packets() in presence of a hub
PATCH 1/1 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 <[email protected]>
--- net/net.c | 1 - 1 file changed, 1 deletion(-)
net/net.c +0 -1
@@ -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
Signature · 1 line
1.7.9.5
Stefan Hajnoczi
AppliedQuoted 7 lines · Sergey Fedorov
Do not return after
net_hub_flush(). Always flush callee network client incoming queue.Signed-off-by Sergey Fedorov <[email protected]>--- net/net.c | 1 - 1 file changed, 1 deletion(-)
Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net
Stefan