From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Vincent Palatin <vpalatin@chromium.org>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
"Roy.Li" <rongqing.li@windriver.com>
Subject: [Qemu-devel] [PATCH 0/3] net: fix hub control flow (again)
Date: Fri, 24 Aug 2012 14:39:50 +0100 [thread overview]
Message-ID: <1345815593-5555-1-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
Two networking issues have been observed:
1. When the USB network interface and dump net client are on the same "VLAN",
the USB network interface drops packets. This was assumed to be because the
dump net client can receive packets all the time, whereas the USB network
interface has a single buffer that the guest must empty.
The (incorrect) fix for #1 was to only broadcast "VLAN" packets when all net
clients can receive. Once this code change was merged a new issue appeared:
2. When two NICs are on a "VLAN" they must both be up. If one NIC is not up
then no traffic can flow on the "VLAN".
This patch series fixes the root cause for #1, namely, that the USB network
interface clobbers its input buffer when usbnet_receive() is called before the guest has a chance to empty the buffer.
Then we can revert the "VLAN" flow control change which caused #2. The result
is that both #1 and #2 are now fixed.
Stefan Hajnoczi (3):
net: clean up usbnet_receive()
net: fix usbnet_receive() packet drops
net: broadcast hub packets if at least one port can receive
hw/usb/dev-network.c | 49 +++++++++++++++++++++++++++++++++----------------
net/hub.c | 6 +++---
2 files changed, 36 insertions(+), 19 deletions(-)
--
1.7.10.4
next reply other threads:[~2012-08-24 13:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 13:39 Stefan Hajnoczi [this message]
2012-08-24 13:39 ` [Qemu-devel] [PATCH 1/3] net: clean up usbnet_receive() Stefan Hajnoczi
2012-08-24 13:39 ` [Qemu-devel] [PATCH 2/3] net: fix usbnet_receive() packet drops Stefan Hajnoczi
2012-08-24 13:39 ` [Qemu-devel] [PATCH 3/3] net: broadcast hub packets if at least one port can receive Stefan Hajnoczi
2012-08-29 15:34 ` [Qemu-devel] [PATCH 0/3] net: fix hub control flow (again) 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=1345815593-5555-1-git-send-email-stefanha@linux.vnet.ibm.com \
--to=stefanha@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rongqing.li@windriver.com \
--cc=vpalatin@chromium.org \
/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).