From patchwork Mon Feb 25 08:09:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 222859 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 613BE2C029E for ; Mon, 25 Feb 2013 19:10:37 +1100 (EST) Received: from localhost ([::1]:52015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9t8t-0005XW-D5 for incoming@patchwork.ozlabs.org; Mon, 25 Feb 2013 03:10:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9t8a-0005Ou-Iw for qemu-devel@nongnu.org; Mon, 25 Feb 2013 03:10:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9t8R-0006Wp-3u for qemu-devel@nongnu.org; Mon, 25 Feb 2013 03:10:15 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:63644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9t8Q-0006Tq-RN for qemu-devel@nongnu.org; Mon, 25 Feb 2013 03:10:06 -0500 Received: by mail-pa0-f51.google.com with SMTP id hz1so1601887pad.38 for ; Mon, 25 Feb 2013 00:10:04 -0800 (PST) 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=TecbDgu000Um0q95m+A0snl7NaM5MBhhahQmeWwcyYg=; b=ll+WPiUi+jlVm2wLSuHk7xS4qlcmBFOy8wkZ/bRIdvHDzTs0ztdi/BToaH+Q/6jUzw HD1iVUX0OI0Wrd1H9Pm2wVTRy1cQ9E9jszQHmaHyO0GhT1/L1zqVnYEl+snMOHQp3FyG ghAZGnVgH+KeQkYKoyzbC+nS8iajGmCuGhfVpeqwE4PeY9zydYOjXQ1DZJNPQCa8H2co 4k9xLaLn8oevHpVltrKRPCCEhJPlcDVggrWr+KmXyyhYnIoEEBkRlDyww0HuKuwYplZK XUHxwEPSNA/Adn6e8ssDlsRmvgoTJEC4MZzt98kmy/pxEWel84WGJyyfkGpVDs62MPeu HMIw== X-Received: by 10.66.9.2 with SMTP id v2mr17772547paa.18.1361779804502; Mon, 25 Feb 2013 00:10:04 -0800 (PST) Received: from localhost ([1.128.158.226]) by mx.google.com with ESMTPS id ri1sm11947503pbc.16.2013.02.25.00.10.01 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 25 Feb 2013 00:10:03 -0800 (PST) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Mon, 25 Feb 2013 18:09:49 +1000 Message-Id: <1361779789-9393-1-git-send-email-peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 X-Gm-Message-State: ALoCoQk1e9EeIuunz81eVpZ+/zyv3KvL2HQYGSJc0vX/PQcU/8+5wxrDY3/xjkPENHOLukAeaRJ2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.51 Cc: edgar.iglesias@gmail.com, 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 --- 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 e5d9251..9a82b1b 100644 --- a/hw/xilinx_axienet.c +++ b/hw/xilinx_axienet.c @@ -515,6 +515,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;