All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vhost: fix up after tx timer removal
@ 2009-08-17 12:39 Michael S. Tsirkin
  0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2009-08-17 12:39 UTC (permalink / raw)
  To: Gregory Haskins; +Cc: Anthony Liguori, alacrityvm-devel, kvm@vger.kernel.org

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

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/virtio-net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index 835f4e1..33e42bb 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -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;
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-17 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 12:39 [PATCH] vhost: fix up after tx timer removal Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.