blob: 80cd4bff6d9a31f182b35f32f92f8f7280ca49d5 [file] [log] [blame]
Pierre Pfister019481b2016-09-08 14:36:27 +01001From be1210e77f0f9072ccb8e6970552596b6780a44c Mon Sep 17 00:00:00 2001
2From: Pierre Pfister <ppfister@cisco.com>
3Date: Fri, 2 Sep 2016 16:24:57 +0200
4Subject: [PATCH] virtio: enable indirect descriptors feature
5
6Virtio indirect descriptors are supported by the data-path
7but the feature bit is never set during feature negociation.
8
9This patch simply adds VIRTIO_RING_F_INDIRECT_DESC back to
10the supported features bit mask, hence enabling the use of
11indirect descriptors when the feature is negociated with the
12device.
13
14Signed-off-by: Pierre Pfister <ppfister@cisco.com>
15---
16 drivers/net/virtio/virtio_ethdev.h | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h
20index 2ecec6e..31c91a5 100644
21--- a/drivers/net/virtio/virtio_ethdev.h
22+++ b/drivers/net/virtio/virtio_ethdev.h
23@@ -63,6 +63,7 @@
24 1u << VIRTIO_NET_F_CTRL_RX | \
25 1u << VIRTIO_NET_F_CTRL_VLAN | \
26 1u << VIRTIO_NET_F_MRG_RXBUF | \
27+ 1u << VIRTIO_RING_F_INDIRECT_DESC | \
28 1ULL << VIRTIO_F_VERSION_1)
29
30 /*
31--
322.7.4 (Apple Git-66)
33
34