Skip to contentSkip to conversation

xilinx_axienet: pump events as appropriate

PATCH In review Peter Crosthwaite 2 participants 3 messages Apr 3, 2013 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xilinx_axienet: pump events as appropriate

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

---
 hw/xilinx_axienet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hw/xilinx_axienet.c +2 -0
index 5785290..07c4bad 100644
@@ -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;
 
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Peter Crosthwaite

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

Quoted 20 lines
---
 hw/xilinx_axienet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hw/xilinx_axienet.c +2 -0
index 5785290..07c4bad 100644
@@ -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;
 
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to Peter Crosthwaite
Quoted 4 lines · Peter Crosthwaite

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

Appliead, thanks Peter

Quoted 20 lines
---
 hw/xilinx_axienet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hw/xilinx_axienet.c +2 -0
index 5785290..07c4bad 100644
@@ -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;
 
Signature · 1 line
1.7.0.4