From 572825df79e27a8baebcfc11d91bdb6f9776c2c7 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 15 May 2017 12:32:15 +0200 Subject: dpdk: revert dpdk 17.05 change which causes virtio issues This patch is causing DPDK to provide bad MAC address for legacy virtio interfaces. Change-Id: I526cd35a38164ede80a8ab6decb9e0d1ebfad723 Signed-off-by: Damjan Marion --- ...io-tx-with-can_push-when-VERSION_1-is-set.patch | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 dpdk/dpdk-16.11_patches/0001-virtio-tx-with-can_push-when-VERSION_1-is-set.patch (limited to 'dpdk/dpdk-16.11_patches/0001-virtio-tx-with-can_push-when-VERSION_1-is-set.patch') diff --git a/dpdk/dpdk-16.11_patches/0001-virtio-tx-with-can_push-when-VERSION_1-is-set.patch b/dpdk/dpdk-16.11_patches/0001-virtio-tx-with-can_push-when-VERSION_1-is-set.patch deleted file mode 100644 index c26935684b6..00000000000 --- a/dpdk/dpdk-16.11_patches/0001-virtio-tx-with-can_push-when-VERSION_1-is-set.patch +++ /dev/null @@ -1,38 +0,0 @@ -From b002b56c0c8a1790549c23d93f3d57ffc212c6da Mon Sep 17 00:00:00 2001 -From: Pierre Pfister -Date: Tue, 8 Nov 2016 10:24:48 +0100 -Subject: [PATCH] virtio: tx with can_push when VERSION_1 is set - -Current virtio driver advertises VERSION_1 support, -but does not handle device's VERSION_1 support when -sending packets (it looks for ANY_LAYOUT feature, -which is absent). - -This patch enables 'can_push' in tx path when VERSION_1 -is advertised by the device. - -This significantly improves small packets forwarding rate -towards devices advertising VERSION_1 feature. - -Signed-off-by: Pierre Pfister ---- - drivers/net/virtio/virtio_rxtx.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c -index 22d97a4..1e5a6b9 100644 ---- a/drivers/net/virtio/virtio_rxtx.c -+++ b/drivers/net/virtio/virtio_rxtx.c -@@ -1015,7 +1015,8 @@ virtio_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) - } - - /* optimize ring usage */ -- if (vtpci_with_feature(hw, VIRTIO_F_ANY_LAYOUT) && -+ if ((vtpci_with_feature(hw, VIRTIO_F_ANY_LAYOUT) || -+ vtpci_with_feature(hw, VIRTIO_F_VERSION_1)) && - rte_mbuf_refcnt_read(txm) == 1 && - RTE_MBUF_DIRECT(txm) && - txm->nb_segs == 1 && --- -2.7.4 (Apple Git-66) - -- cgit 1.2.3-korg