mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
etsec: Move etsec_can_receive into etsec_receive
When etsec_reset returns 0, peer would queue the packet as if .can_receive returns false. Drop etsec_can_receive and let etsec_receive carry the semantics. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Message-id: 1436955553-22791-6-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
913440249e
commit
b6cb6610c2
3 changed files with 10 additions and 17 deletions
|
@ -162,7 +162,7 @@ DeviceState *etsec_create(hwaddr base,
|
|||
|
||||
void etsec_walk_tx_ring(eTSEC *etsec, int ring_nbr);
|
||||
void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr);
|
||||
void etsec_rx_ring_write(eTSEC *etsec, const uint8_t *buf, size_t size);
|
||||
ssize_t etsec_rx_ring_write(eTSEC *etsec, const uint8_t *buf, size_t size);
|
||||
|
||||
void etsec_write_miim(eTSEC *etsec,
|
||||
eTSEC_Register *reg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue