From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNWlN-0004EX-EL for qemu-devel@nongnu.org; Wed, 03 Apr 2013 19:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNWlM-00065e-3y for qemu-devel@nongnu.org; Wed, 03 Apr 2013 19:06:41 -0400 Received: from mail-ee0-f53.google.com ([74.125.83.53]:38514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNWlL-00065P-Tl for qemu-devel@nongnu.org; Wed, 03 Apr 2013 19:06:40 -0400 Received: by mail-ee0-f53.google.com with SMTP id c13so820118eek.26 for ; Wed, 03 Apr 2013 16:06:39 -0700 (PDT) Date: Thu, 4 Apr 2013 01:02:58 +0200 From: "Edgar E. Iglesias" Message-ID: <20130403230258.GI15741@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 Appliead, thanks Peter > --- > 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 >