[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/17] cadence_gem: Flush queued packets
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 13/17] cadence_gem: Flush queued packets |
Date: |
Thu, 28 Feb 2013 18:53:59 +0000 |
From: Peter Crosthwaite <address@hidden>
The device needs to check for queued RX packets when the RX path is re-enabled.
Signed-off-by: Peter Crosthwaite <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
hw/cadence_gem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
index ab86c17..e6032ea 100644
--- a/hw/cadence_gem.c
+++ b/hw/cadence_gem.c
@@ -1106,6 +1106,9 @@ static void gem_write(void *opaque, hwaddr offset,
uint64_t val,
/* Reset to start of Q when receive disabled. */
s->rx_desc_addr = s->regs[GEM_RXQBASE];
}
+ if (val & GEM_NWCTRL_RXENA) {
+ qemu_flush_queued_packets(qemu_get_queue(s->nic));
+ }
break;
case GEM_TXSTATUS:
--
1.7.9.5
- [Qemu-devel] [PULL 00/17] arm-devs queue, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 07/17] arm: a9mpcore: remove old_timer_status field, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 08/17] arm: a9mpcore: Coreify the SCU, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 11/17] xilinx_zynq: Added SD controllers, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 12/17] m25p80.c: Use QOM classes for part differentiation, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 17/17] cadence_gem: Add debug msgs for rx desc movement, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 02/17] hw/pflash_cfi01: Make read after byte-write or erase return status, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 14/17] cadence_gem: factor out can_rx() logic replication, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 03/17] hw/pflash_cfi01: Treat read in unknown command state as read, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 06/17] arm: mptimer: Remove WDT distinction, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 13/17] cadence_gem: Flush queued packets,
Peter Maydell <=
- [Qemu-devel] [PATCH 10/17] vl.c: allow for repeated -sd arguments, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 05/17] arm: arm11mpcore, a9mpcore: CamelCased type names, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 16/17] cadence_gem: Don't reset rx desc pointer on rx_en, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 15/17] cadence_gem: fix interrupt events, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 04/17] arm: mptimer: CamelCased type names, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 09/17] hw/sdhci: introduce standard SD host controller, Peter Maydell, 2013/02/28
- [Qemu-devel] [PATCH 01/17] hw/ds1338: Fix conversion between 12 hours and 24 hours modes., Peter Maydell, 2013/02/28
- Re: [Qemu-devel] [PULL 00/17] arm-devs queue, Blue Swirl, 2013/02/28