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