qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/6] virtio network driver


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 4/6] virtio network driver
Date: Sun, 30 Mar 2008 09:47:57 -0500
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Paul Brook wrote:
On Saturday 29 March 2008, Anthony Liguori wrote:
+    if ((elem = virtqueue_pop(n->rx_vq)) == NULL) {
+       /* wait until the guest adds some rx bufs */
+       n->can_receive = 0;
+       return;
+    }

Setting can_receive to zero *after* dropping a packet is a bit late.
Not a fatal flaw, but it does make can_receive fairly useless. The whole point of can_receive is to workaround lack of proper TCP rate control in the slirp code.

Yeah, I should just drop the can_receive handler. I assumed when I wrote the driver originally that can_receive queued packets. Since we have to drop packets anyway in the code now, there's no point in having a can_receive handler.

Regards,

Anthony Liguori

Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]