From: Sergey Fedorov <s.fedorov@samsung.com>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com, a.basov@samsung.com, rizzo@iet.unipi.it,
Sergey Fedorov <s.fedorov@samsung.com>,
aliguori@amazon.com
Subject: [Qemu-devel] [PATCH] net: fix qemu_flush_queued_packets() in presence of a hub
Date: Tue, 05 Nov 2013 10:54:29 +0400 [thread overview]
Message-ID: <1383634469-24067-1-git-send-email-s.fedorov@samsung.com> (raw)
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(-)
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
--
1.7.9.5
next reply other threads:[~2013-11-05 6:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 6:54 Sergey Fedorov [this message]
2013-11-05 13:12 ` [Qemu-devel] [PATCH] net: fix qemu_flush_queued_packets() in presence of a hub Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383634469-24067-1-git-send-email-s.fedorov@samsung.com \
--to=s.fedorov@samsung.com \
--cc=a.basov@samsung.com \
--cc=aliguori@amazon.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).