diff options
| author | Fam Zheng <famz@redhat.com> | 2015-07-15 18:19:10 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-27 14:12:18 +0100 |
| commit | 1dd58ae0583c3d3fb15fa1d563d6b497558d3ad0 (patch) | |
| tree | 9e46640377a141cdeaf9446b4be7d78ffaa343ef /hw/net/stellaris_enet.c | |
| parent | 3b7031e9609baf710823aa7880fd9802b39c4563 (diff) | |
| download | focaccia-qemu-1dd58ae0583c3d3fb15fa1d563d6b497558d3ad0.tar.gz focaccia-qemu-1dd58ae0583c3d3fb15fa1d563d6b497558d3ad0.zip | |
mipsnet: Flush queued packets when receiving is enabled
Drop .can_receive and move the semantics to mipsnet_receive, by returning 0. After 0 is returned, we must flush the queue explicitly to restart it: Call qemu_flush_queued_packets when s->busy or s->rx_count is being updated. 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-10-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/stellaris_enet.c')
0 files changed, 0 insertions, 0 deletions