From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNIsE-00029z-AV for qemu-devel@nongnu.org; Wed, 03 Apr 2013 04:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNIsD-0003mF-5M for qemu-devel@nongnu.org; Wed, 03 Apr 2013 04:16:50 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:60813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNIsC-0003m2-Uv for qemu-devel@nongnu.org; Wed, 03 Apr 2013 04:16:49 -0400 Received: by mail-ea0-f170.google.com with SMTP id a15so537006eae.1 for ; Wed, 03 Apr 2013 01:16:48 -0700 (PDT) Date: Wed, 3 Apr 2013 10:13:07 +0200 From: "Edgar E. Iglesias" Message-ID: <20130403081307.GF15741@smtp.vpn> References: <1364961849-29407-1-git-send-email-peter.crosthwaite@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1364961849-29407-1-git-send-email-peter.crosthwaite@xilinx.com> Subject: Re: [Qemu-devel] [PATCH] xilinx_axienet: pump events as appropriate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: qemu-devel@nongnu.org On Wed, Apr 03, 2013 at 02:04:09PM +1000, Peter Crosthwaite wrote: > When the conditions blocking receiving are cleared, check for buffered rx > packets. > > Signed-off-by: Peter Crosthwaite Acked-by: Edgar E. Iglesias > --- > hw/xilinx_axienet.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c > index 5785290..07c4bad 100644 > --- a/hw/xilinx_axienet.c > +++ b/hw/xilinx_axienet.c > @@ -516,6 +516,8 @@ static void enet_write(void *opaque, hwaddr addr, > s->rcw[addr & 1] = value; > if ((addr & 1) && value & RCW1_RST) { > axienet_rx_reset(s); > + } else { > + qemu_flush_queued_packets(qemu_get_queue(s->nic)); > } > break; > > -- > 1.7.0.4 >