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,
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