summaryrefslogtreecommitdiffstats
path: root/hw/net/pcnet-pci.c
diff options
context:
space:
mode:
authorFam Zheng2015-07-15 12:19:08 +0200
committerStefan Hajnoczi2015-07-27 15:12:18 +0200
commite813f0d8813944061fa9bde861cf6899379843e6 (patch)
treec13196af225190f0efc22fe1208067391e4de28b /hw/net/pcnet-pci.c
parentetsec: Flush queue when rx buffer is consumed (diff)
downloadqemu-e813f0d8813944061fa9bde861cf6899379843e6.tar.gz
qemu-e813f0d8813944061fa9bde861cf6899379843e6.tar.xz
qemu-e813f0d8813944061fa9bde861cf6899379843e6.zip
mcf_fec: Drop mcf_fec_can_receive
The semantics of .can_receive requires us to flush the queue explicitly when s->rx_enabled becomes true after it returns 0, but the packet being queued is not meaningful since the guest hasn't activated the card. Let's just drop the packet in this case. 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-8-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/pcnet-pci.c')
0 files changed, 0 insertions, 0 deletions