From patchwork Wed Apr 3 04:04:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 233214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 917F82C008D for ; Wed, 3 Apr 2013 15:05:29 +1100 (EST) Received: from localhost ([::1]:52338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNEwx-0002wR-He for incoming@patchwork.ozlabs.org; Wed, 03 Apr 2013 00:05:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNEw5-0002Cn-BX for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNEw4-0005xM-Ei for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:04:33 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:53341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNEw4-0005xC-8u for qemu-devel@nongnu.org; Wed, 03 Apr 2013 00:04:32 -0400 Received: by mail-pb0-f42.google.com with SMTP id up7so613174pbc.15 for ; Tue, 02 Apr 2013 21:04:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=en1M4XjNEMh3Qr5XLEM26i+4c8hKXG/jr4zqRG+0ujM=; b=gXW/Icg3m6hyWKTeH1iW76aRuPnSBa5hywafBEZA/83DuyPSUIqvcLzdZVAwhktdoA tK3kePJGlFCebnXLkKzoi4uHGA47QRKAlb7hAM0SgTbmuRt7YwQgHqifCjL1M2DRWp3W zI209MaAEySrO5Xk1JKrHjSHupBU9TkUtgtd5WSoUDw7VVx4JfqCLd7R+QrAw5hdv5SK L+nfeWcTE51blaxXSFBa7Sk7j7ftjZCjFlXDXcjzRWYNEkQlDY6JEV6Xq9WbXFpiFmSJ 1nps3fZqH0jnTf89tdUVmwdF25bC08nIjY1E5b0lHVRIdqok/IOQo7vLcK0ik8hixQxw Lwuw== X-Received: by 10.66.241.106 with SMTP id wh10mr771313pac.143.1364961871391; Tue, 02 Apr 2013 21:04:31 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPS id hs8sm4204888pbc.27.2013.04.02.21.04.29 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 02 Apr 2013 21:04:30 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org, edgar.iglesias@gmail.com Date: Wed, 3 Apr 2013 14:04:09 +1000 Message-Id: <1364961849-29407-1-git-send-email-peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 X-Gm-Message-State: ALoCoQlr9TYs5bWC3SYrguiGmqPWf74N8s1ZeBW2f0NncFEvJiwHrp5tNAd2/nwsp/2389E9GM/O X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.42 Cc: Peter Crosthwaite Subject: [Qemu-devel] [PATCH] xilinx_axienet: pump events as appropriate X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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;