[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/20] ftgmac100: Fix interrupt status "Packet transmitted on ethe
From: |
Cédric Le Goater |
Subject: |
[PULL 09/20] ftgmac100: Fix interrupt status "Packet transmitted on ethernet" |
Date: |
Tue, 1 Sep 2020 14:45:14 +0200 |
The second field of the TX descriptor has a set of flags to choose
when the transmit interrupt is raised : after the packet has been sent
on the ethernet or after it has been moved into the TX FIFO. But we
don't model that today.
Simply raise the "Packet transmitted on ethernet" interrupt status bit
as soon as the packet is sent by QEMU.
Cc: Frederic Konrad <konrad.frederic@yahoo.fr>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20200819100956.2216690-11-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/net/ftgmac100.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/net/ftgmac100.c b/hw/net/ftgmac100.c
index 0348fcf45676..aa3c05ef9882 100644
--- a/hw/net/ftgmac100.c
+++ b/hw/net/ftgmac100.c
@@ -547,9 +547,7 @@ static void ftgmac100_do_tx(FTGMAC100State *s, uint32_t
tx_ring,
qemu_send_packet(qemu_get_queue(s->nic), s->frame, frame_size);
ptr = s->frame;
frame_size = 0;
- if (flags & FTGMAC100_TXDES1_TXIC) {
- s->isr |= FTGMAC100_INT_XPKT_ETH;
- }
+ s->isr |= FTGMAC100_INT_XPKT_ETH;
}
if (flags & FTGMAC100_TXDES1_TX2FIC) {
--
2.25.4
- [PULL 12/20] ftgmac100: Check for invalid len and address before doing a DMA transfer, (continued)
- [PULL 12/20] ftgmac100: Check for invalid len and address before doing a DMA transfer, Cédric Le Goater, 2020/09/01
- [PULL 01/20] m25p80: Return the JEDEC ID twice for mx25l25635e, Cédric Le Goater, 2020/09/01
- [PULL 05/20] aspeed/smc: Fix MemoryRegionOps definition, Cédric Le Goater, 2020/09/01
- [PULL 07/20] aspeed/sdhci: Fix reset sequence, Cédric Le Goater, 2020/09/01
- [PULL 03/20] aspeed/scu: Fix valid access size on AST2400, Cédric Le Goater, 2020/09/01
- [PULL 08/20] ftgmac100: Fix registers that can be read, Cédric Le Goater, 2020/09/01
- [PULL 04/20] hw/arm/aspeed: Add board model for Supermicro X11 BMC, Cédric Le Goater, 2020/09/01
- [PULL 15/20] aspeed/sdmc: Perform memory training, Cédric Le Goater, 2020/09/01
- [PULL 16/20] aspeed/sdmc: Allow writes to unprotected registers, Cédric Le Goater, 2020/09/01
- [PULL 14/20] ftgmac100: Improve software reset, Cédric Le Goater, 2020/09/01
- [PULL 09/20] ftgmac100: Fix interrupt status "Packet transmitted on ethernet",
Cédric Le Goater <=
- [PULL 18/20] aspeed/smc: Open AHB window of the second chip of the AST2600 FMC controller, Cédric Le Goater, 2020/09/01
- [PULL 20/20] hw: add a number of SPI-flash's of m25p80 family, Cédric Le Goater, 2020/09/01
- [PULL 10/20] ftgmac100: Fix interrupt status "Packet moved to RX FIFO", Cédric Le Goater, 2020/09/01
- [PULL 13/20] ftgmac100: Fix integer overflow in ftgmac100_do_tx(), Cédric Le Goater, 2020/09/01
- [PULL 19/20] arm: aspeed: add strap define `25HZ` of AST2500, Cédric Le Goater, 2020/09/01
- [PULL 17/20] aspeed/sdmc: Simplify calculation of RAM bits, Cédric Le Goater, 2020/09/01
- [PULL 11/20] ftgmac100: Change interrupt status when a DMA error occurs, Cédric Le Goater, 2020/09/01
- Re: [PULL 00/20] aspeed queue, Peter Maydell, 2020/09/03