On Wed, 2008-12-03 at 14:32 -0600, Anthony Liguori wrote: > @@ -189,6 +205,9 @@ static void virtio_net_receive(void *opaque, const > uint8_t *buf, int size) > struct virtio_net_hdr_mrg_rxbuf *mhdr = NULL; > int hdr_len, offset, i; > > + if (!virtio_net_can_receive(opaque)) > + return;
Should pass the buffer size to virtio_net_can_receive() to limit the work virtqueue_avail_bytes() has to do. Cheers, Mark. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
