diff options
author | Fam Zheng | 2015-07-15 12:19:09 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2015-07-27 15:12:18 +0200 |
commit | 3b7031e9609baf710823aa7880fd9802b39c4563 (patch) | |
tree | a5424616160a8cb439a4bbbb57be4830dca1377e /hw/net/rtl8139.c | |
parent | mcf_fec: Drop mcf_fec_can_receive (diff) | |
download | qemu-3b7031e9609baf710823aa7880fd9802b39c4563.tar.gz qemu-3b7031e9609baf710823aa7880fd9802b39c4563.tar.xz qemu-3b7031e9609baf710823aa7880fd9802b39c4563.zip |
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>
Diffstat (limited to 'hw/net/rtl8139.c')
0 files changed, 0 insertions, 0 deletions