Received: from eggs.gnu.org ([2001:4830:134:3::10]:46550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z884X-0003xP-Gy for qemu-devel@nongnu.org; Thu, 25 Jun 2015 10:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z884S-0003JU-Iu for qemu-devel@nongnu.org; Thu, 25 Jun 2015 10:24:09 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:36127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z884S-0003Ij-Bd for qemu-devel@nongnu.org; Thu, 25 Jun 2015 10:24:04 -0400 Received: by wicnd19 with SMTP id nd19so165711922wic.1 for ; Thu, 25 Jun 2015 07:24:03 -0700 (PDT) Date: Thu, 25 Jun 2015 15:24:00 +0100 From: Stefan Hajnoczi Message-ID: <20150625142400.GN4419@stefanha-thinkpad.redhat.com> References: <1435223885-12745-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ggdAeHltlv4tpqCr" Content-Disposition: inline In-Reply-To: <1435223885-12745-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: jasowang@redhat.com, qemu-devel@nongnu.org --ggdAeHltlv4tpqCr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 25, 2015 at 10:18:05AM +0100, Stefan Hajnoczi wrote: > e1000_can_receive() checks the link up status register bit. If the bit > is clear, packets will be queued and the peer may disable receive to > avoid wasting CPU reading packets that cannot be delivered. The queue > must be flushed once the link comes back up again. >=20 > This patch fixes broken e1000 receive with Mac OS X Snow Leopard guests > and tap networking. Flushing the queue invokes the async send callback, > which re-enables tap fd read. >=20 > Reported-by: Jonathan Liu > Signed-off-by: Stefan Hajnoczi > --- > hw/net/e1000.c | 3 +++ > 1 file changed, 3 insertions(+) Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Stefan --ggdAeHltlv4tpqCr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVjA8AAAoJEJykq7OBq3PIdnIH/2xju4k3Etm1S1sLx5wLjnrm L2KDNVfDyqtDDM9xUdg0GzKKlg5TpqBzTECAAPd6IN+0a1uR3au2i57OvMHNLBVJ Ek+3lOoYpHPpsB8Lg6KOOgDvTTF0M0W7kXIDluYF8phj90odOF62GFNlEf55UoXf jsKyBoyTRkdqyI9uQkADyqsnvuP6FtNMU4tu69BwqBSpjcDX1fGdT4jmL4HtuZCw pTBVCL3lDfYhf41AcjzXCvEAp5cZ2FRzllc1a8axIgxXc3SsWgnQCLFXJut3yw/p SLHiqXufVXZe2ALg4sVP7qCACkeSxHGKCFtSGDLyv+PrHZzl1dT0thVAvBF8BcM= =IB7t -----END PGP SIGNATURE----- --ggdAeHltlv4tpqCr--