qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] xilinx_axienet: pump events as appropriate
@ 2013-04-03  4:04 Peter Crosthwaite
  2013-04-03  8:13 ` Edgar E. Iglesias
  2013-04-03 23:02 ` Edgar E. Iglesias
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Crosthwaite @ 2013-04-03  4:04 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias; +Cc: Peter Crosthwaite

When the conditions blocking receiving are cleared, check for buffered rx
packets.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-03 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03  4:04 [Qemu-devel] [PATCH] xilinx_axienet: pump events as appropriate Peter Crosthwaite
2013-04-03  8:13 ` Edgar E. Iglesias
2013-04-03 23:02 ` Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).