From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Vincent Palatin <vpalatin@chromium.org>,
qemu-devel@nongnu.org, "Roy.Li" <rongqing.li@windriver.com>
Subject: Re: [Qemu-devel] [PATCH 0/3] net: fix hub control flow (again)
Date: Wed, 29 Aug 2012 16:34:52 +0100 [thread overview]
Message-ID: <20120829153452.GA26167@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <1345815593-5555-1-git-send-email-stefanha@linux.vnet.ibm.com>
On Fri, Aug 24, 2012 at 02:39:50PM +0100, Stefan Hajnoczi wrote:
> 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
>
>
Applied to the net tree:
https://github.com/stefanha/qemu/commits/net
Stefan
prev parent reply other threads:[~2012-08-29 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 13:39 [Qemu-devel] [PATCH 0/3] net: fix hub control flow (again) Stefan Hajnoczi
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 ` Stefan Hajnoczi [this message]
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=20120829153452.GA26167@stefanha-thinkpad.localdomain \
--to=stefanha@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rongqing.li@windriver.com \
--cc=stefanha@linux.vnet.ibm.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).