diff options
author | Damjan Marion <damarion@cisco.com> | 2017-02-28 23:26:30 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2017-02-28 23:26:30 +0100 |
commit | f7c379403a98cf060d28bac24916c51067c4ec90 (patch) | |
tree | 2abcefb884b9a9894a8319c243b5b0fc223eea82 /src/vnet/devices/dpdk/init.c | |
parent | 7100b9cc6f1342a320c372bf746ae85cf815c41b (diff) |
dpdk: retire support for dpdk 16.07
Change-Id: I8585552c026415340fe9fd0458cb8450da3c4ae2
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/dpdk/init.c')
-rwxr-xr-x | src/vnet/devices/dpdk/init.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/vnet/devices/dpdk/init.c b/src/vnet/devices/dpdk/init.c index ec008c20707..f4700133d21 100755 --- a/src/vnet/devices/dpdk/init.c +++ b/src/vnet/devices/dpdk/init.c @@ -428,11 +428,8 @@ dpdk_lib_init (dpdk_main_t * dm) /* workaround for drivers not setting driver_name */ if ((!dev_info.driver_name) && (dev_info.pci_dev)) -#if RTE_VERSION < RTE_VERSION_NUM(16, 11, 0, 0) - dev_info.driver_name = dev_info.pci_dev->driver->name; -#else dev_info.driver_name = dev_info.pci_dev->driver->driver.name; -#endif + ASSERT (dev_info.driver_name); if (!xd->pmd) @@ -1608,11 +1605,8 @@ dpdk_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) struct rte_eth_dev_info dev_info; rte_eth_dev_info_get (i, &dev_info); if (!dev_info.driver_name) -#if RTE_VERSION < RTE_VERSION_NUM(16, 11, 0, 0) - dev_info.driver_name = dev_info.pci_dev->driver->name; -#else dev_info.driver_name = dev_info.pci_dev->driver->driver.name; -#endif + ASSERT (dev_info.driver_name); if (strncmp (dev_info.driver_name, "rte_bond_pmd", 12) == 0) { |