Blame SOURCES/0010-net-virtio-enable-packed-virtqueues-by-default.patch

2c1bf6
From d1b8c268219498c865511b375b0c0c89244046f9 Mon Sep 17 00:00:00 2001
2c1bf6
From: Jens Freimann <jfreimann@redhat.com>
2c1bf6
Date: Mon, 17 Dec 2018 22:31:39 +0100
2c1bf6
Subject: [PATCH 10/18] net/virtio: enable packed virtqueues by default
2c1bf6
2c1bf6
[ upstream commit aea29aa5d37b40080cfc1f9a1acba239bf03922f ]
2c1bf6
2c1bf6
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
2c1bf6
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2c1bf6
(cherry picked from commit aea29aa5d37b40080cfc1f9a1acba239bf03922f)
2c1bf6
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
2c1bf6
---
2c1bf6
 drivers/net/virtio/virtio_ethdev.h               | 1 +
2c1bf6
 drivers/net/virtio/virtio_user/virtio_user_dev.c | 3 ++-
2c1bf6
 2 files changed, 3 insertions(+), 1 deletion(-)
2c1bf6
2c1bf6
diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h
2c1bf6
index 88b8c42a3..364ecbb50 100644
2c1bf6
--- a/drivers/net/virtio/virtio_ethdev.h
2c1bf6
+++ b/drivers/net/virtio/virtio_ethdev.h
2c1bf6
@@ -34,6 +34,7 @@
2c1bf6
 	 1u << VIRTIO_RING_F_INDIRECT_DESC |    \
2c1bf6
 	 1ULL << VIRTIO_F_VERSION_1       |	\
2c1bf6
 	 1ULL << VIRTIO_F_IN_ORDER        |	\
2c1bf6
+	 1ULL << VIRTIO_F_RING_PACKED	  |	\
2c1bf6
 	 1ULL << VIRTIO_F_IOMMU_PLATFORM)
2c1bf6
 
2c1bf6
 #define VIRTIO_PMD_SUPPORTED_GUEST_FEATURES	\
2c1bf6
diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c
2c1bf6
index 2f75091d5..5999b7d9d 100644
2c1bf6
--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c
2c1bf6
+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c
2c1bf6
@@ -410,7 +410,8 @@ virtio_user_dev_setup(struct virtio_user_dev *dev)
2c1bf6
 	 1ULL << VIRTIO_NET_F_GUEST_TSO6	|	\
2c1bf6
 	 1ULL << VIRTIO_F_IN_ORDER		|	\
2c1bf6
 	 1ULL << VIRTIO_F_VERSION_1		|	\
2c1bf6
-	 1ULL << VIRTIO_F_RING_PACKED)
2c1bf6
+	 1ULL << VIRTIO_F_RING_PACKED		|	\
2c1bf6
+	 1ULL << VIRTIO_RING_F_EVENT_IDX)
2c1bf6
 
2c1bf6
 int
2c1bf6
 virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,
2c1bf6
-- 
2c1bf6
2.21.0
2c1bf6