mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
milkymist-minimac2: Flush queued packets when link comes up
Drop .can_receive and move the semantics into minimac2_rx, by returning 0. That is once minimac2_rx returns 0, incoming packets will be queued until the queue is explicitly flushed. We do this when s->regs[R_STATE0] or s->regs[R_STATE1] is changed in minimac2_write. Also drop the unused trace point. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1436955553-22791-9-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
e813f0d881
commit
3b7031e960
2 changed files with 16 additions and 18 deletions
|
@ -828,7 +828,6 @@ milkymist_minimac2_mdio_write(uint8_t phy_addr, uint8_t addr, uint16_t value) "p
|
|||
milkymist_minimac2_mdio_read(uint8_t phy_addr, uint8_t addr, uint16_t value) "phy_addr %02x addr %02x value %04x"
|
||||
milkymist_minimac2_tx_frame(uint32_t length) "length %u"
|
||||
milkymist_minimac2_rx_frame(const void *buf, uint32_t length) "buf %p length %u"
|
||||
milkymist_minimac2_drop_rx_frame(const void *buf) "buf %p"
|
||||
milkymist_minimac2_rx_transfer(const void *buf, uint32_t length) "buf %p length %d"
|
||||
milkymist_minimac2_raise_irq_rx(void) "Raise IRQ RX"
|
||||
milkymist_minimac2_lower_irq_rx(void) "Lower IRQ RX"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue