Skip to contentSkip to conversation

vhost: fix up after tx timer removal

PATCH New Michael S. Tsirkin 1 participant 1 message Aug 17, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost: fix up after tx timer removal

If someone wants to combine tx timer removal patch with vhost patch, the following trivial fixup will be needed in qemu.

---
 hw/virtio-net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/virtio-net.c +1 -1
index 835f4e1..33e42bb 100644
@@ -627,7 +627,7 @@ static int virtio_net_flush_tx(VirtIONet *n, VirtQueue *vq, int enable_notify)
     int has_vnet_hdr = 0;
 #endif
     if (n->vhost_device)
-	    return;
+	    return num_packets;
 
     if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK))
         return num_packets;
Signature · 1 line
1.6.2.5