SHA256
1
0
forked from pool/openvswitch
openvswitch/0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
Dirk Mueller 93fd217d23 Accepting request 563105 from home:markoschandras:branches:network
- Add upstream patches to support DPDK 17.11 (fate#322609)
  * 0001-netdev-dpdk-replace-uint8_t-with-dpdk_port_t.patch
  * 0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
  * 0003-netdev-dpdk-vHost-IOMMU-support.patch

OBS-URL: https://build.opensuse.org/request/show/563105
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=134
2018-01-10 09:52:13 +00:00

41 lines
1.2 KiB
Diff

From 48d294a05d4c0723aba6d7bae2e8a7bb56921736 Mon Sep 17 00:00:00 2001
From: Markos Chandras <mchandras@suse.de>
Date: Tue, 9 Jan 2018 15:55:34 +0000
Subject: [PATCH 2/3] netdev-dpdk: DPDK v17.11 upgrade
API changes for DPDK v17.11 (taken from upstream commit
5e925ccc2a6f569f1b32365e3660671b8e7d36b3 "netdev-dpdk: DPDK v17.11
upgrade")
Signed-off-by: Markos Chandras <mchandras@suse.de>
---
lib/netdev-dpdk.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index dc96d7ce3..b93aa2354 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -26,6 +26,7 @@
#include <sys/socket.h>
#include <linux/if.h>
+#include <rte_bus_pci.h>
#include <rte_config.h>
#include <rte_cycles.h>
#include <rte_errno.h>
@@ -150,8 +151,8 @@ BUILD_ASSERT_DECL((MAX_NB_MBUF / ROUND_DOWN_POW2(MAX_NB_MBUF/MIN_NB_MBUF))
#define DPDK_ETH_PORT_ID_INVALID RTE_MAX_ETHPORTS
-/* DPDK library uses uint8_t for port_id. */
-typedef uint8_t dpdk_port_t;
+/* DPDK library uses uint16_t for port_id. */
+typedef uint16_t dpdk_port_t;
#define VHOST_ENQ_RETRY_NUM 8
#define IF_NAME_SZ (PATH_MAX > IFNAMSIZ ? PATH_MAX : IFNAMSIZ)
--
2.15.1