diff options
author | Mark Kavanagh <mark.b.kavanagh@intel.com> | 2017-12-08 10:53:46 +0000 |
---|---|---|
committer | Ian Stokes <ian.stokes@intel.com> | 2017-12-08 21:42:54 +0000 |
commit | 5e925ccc2a6f569f1b32365e3660671b8e7d36b3 (patch) | |
tree | 1cae072f637cee8f4a743ebb3f3885a434c0f250 /lib | |
parent | d1ce9c2033fcbd4ee73c4b22abb6cf11db968bd2 (diff) | |
download | openvswitch-5e925ccc2a6f569f1b32365e3660671b8e7d36b3.tar.gz |
netdev-dpdk: DPDK v17.11 upgrade
This commit adds support for DPDK v17.11:
- minor updates to accomodate DPDK API changes
- update references to DPDK version in Documentation
- update DPDK version in travis' linux-build script
- document DPDK v17.11 virtio driver bug
Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Jan Scheurich <jan.scheurich@ericsson.com>
Tested-by: Jan Scheurich <jan.scheurich@ericsson.com>
Tested-by: Guoshuai Li <ligs@dtdream.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/netdev-dpdk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 29f72e9c1..e4f0045b3 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> @@ -140,8 +141,8 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 20); #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) |