qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH RFC 07/14] virtio-net: enable tx notification if up


From: marcandre . lureau
Subject: [Qemu-devel] [PATCH RFC 07/14] virtio-net: enable tx notification if up and vhost started
Date: Wed, 9 Sep 2015 01:09:59 +0200

From: Marc-André Lureau <address@hidden>

When vhost is restarted, make sure the tx notification is on.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 hw/net/virtio-net.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 8d28e45..d494c45 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -195,6 +195,10 @@ static void virtio_net_set_status(struct VirtIODevice 
*vdev, uint8_t status)
             } else {
                 qemu_bh_cancel(q->tx_bh);
             }
+
+            if (n->vhost_started) {
+                virtio_queue_set_notification(q->tx_vq, 1);
+            }
         }
     }
 }
-- 
2.4.3




reply via email to

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