From 019481ba1d2d6e5b82a98f10d7d6d4bdab9e8380 Mon Sep 17 00:00:00 2001 From: Pierre Pfister Date: Thu, 8 Sep 2016 14:36:27 +0100 Subject: DPDK virtio patch: Enable indirect descriptor features http://dpdk.org/dev/patchwork/patch/15610/ This change only includes patch for DPDK 16.07 as DPDK 16.04 doesn't seem to compile for me. Change-Id: I18d84456ef6a15aa308d5e14673a24cb4a7b6909 Signed-off-by: Pierre Pfister --- ...irtio-enable-indirect-descriptors-feature.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dpdk/dpdk-16.07_patches/0010-virtio-enable-indirect-descriptors-feature.patch (limited to 'dpdk') diff --git a/dpdk/dpdk-16.07_patches/0010-virtio-enable-indirect-descriptors-feature.patch b/dpdk/dpdk-16.07_patches/0010-virtio-enable-indirect-descriptors-feature.patch new file mode 100644 index 00000000..80cd4bff --- /dev/null +++ b/dpdk/dpdk-16.07_patches/0010-virtio-enable-indirect-descriptors-feature.patch @@ -0,0 +1,34 @@ +From be1210e77f0f9072ccb8e6970552596b6780a44c Mon Sep 17 00:00:00 2001 +From: Pierre Pfister +Date: Fri, 2 Sep 2016 16:24:57 +0200 +Subject: [PATCH] virtio: enable indirect descriptors feature + +Virtio indirect descriptors are supported by the data-path +but the feature bit is never set during feature negociation. + +This patch simply adds VIRTIO_RING_F_INDIRECT_DESC back to +the supported features bit mask, hence enabling the use of +indirect descriptors when the feature is negociated with the +device. + +Signed-off-by: Pierre Pfister +--- + drivers/net/virtio/virtio_ethdev.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h +index 2ecec6e..31c91a5 100644 +--- a/drivers/net/virtio/virtio_ethdev.h ++++ b/drivers/net/virtio/virtio_ethdev.h +@@ -63,6 +63,7 @@ + 1u << VIRTIO_NET_F_CTRL_RX | \ + 1u << VIRTIO_NET_F_CTRL_VLAN | \ + 1u << VIRTIO_NET_F_MRG_RXBUF | \ ++ 1u << VIRTIO_RING_F_INDIRECT_DESC | \ + 1ULL << VIRTIO_F_VERSION_1) + + /* +-- +2.7.4 (Apple Git-66) + + -- cgit 1.2.3-korg