virtio-net: implement rx packet queueing
authorMark McLoughlin <markmc@redhat.com>
Wed, 29 Apr 2009 12:40:02 +0000 (13:40 +0100)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:50 +0000 (11:38 +0100)
commit83f63753b0652a0059f1158e2d2f31fa80b4cc84
tree7bfdba96a16d2816d81659b8ee5124900242781e
parent7b8ad3560fa215314e6a26ec182a93c4d0b6ff02
virtio-net: implement rx packet queueing

If we don't have room to receive a packet, we return zero
from virtio_net_receive() and call qemu_flush_queued_packets()
as soon as space becomes available.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
hw/virtio-net.c