summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-12 00:26:45 +0200
committerDamjan Marion <dmarion@me.com>2018-08-13 14:32:03 +0000
commit3bf6c2bfe59be62169a1245340722481b0b53870 (patch)
treeed84f92827078d29273ad5d06ff04c80a193f18b /src/plugins/dpdk/device/cli.c
parent060c3a7e5a2d23189a8c6348e767cd2018a58dd6 (diff)
dpdk: support for DPDK 18.08
Change-Id: If1b93341c222160b9a08f127620c024620e55c37 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/cli.c')
-rw-r--r--src/plugins/dpdk/device/cli.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/dpdk/device/cli.c b/src/plugins/dpdk/device/cli.c
index 40ec32325e4..cac27dee639 100644
--- a/src/plugins/dpdk/device/cli.c
+++ b/src/plugins/dpdk/device/cli.c
@@ -68,11 +68,7 @@ get_hqos (u32 hw_if_index, u32 subport_id, dpdk_device_t ** xd,
rte_eth_dev_info_get ((*xd)->port_id, &dev_info);
-#if RTE_VERSION < RTE_VERSION_NUM(18, 5, 0, 0)
- pci_dev = dev_info.pci_dev;
-#else
pci_dev = RTE_DEV_TO_PCI (dev_info.device);
-#endif
if (pci_dev)
{ /* bonded interface has no pci info */
@@ -1290,11 +1286,7 @@ set_dpdk_if_hqos_pktfield (vlib_main_t * vm, unformat_input_t * input,
rte_eth_dev_info_get (xd->port_id, &dev_info);
-#if RTE_VERSION < RTE_VERSION_NUM(18, 5, 0, 0)
- pci_dev = dev_info.pci_dev;
-#else
pci_dev = RTE_DEV_TO_PCI (dev_info.device);
-#endif
if (pci_dev)
{ /* bonded interface has no pci info */
@@ -1489,11 +1481,7 @@ show_dpdk_if_hqos (vlib_main_t * vm, unformat_input_t * input,
rte_eth_dev_info_get (xd->port_id, &dev_info);
-#if RTE_VERSION < RTE_VERSION_NUM(18, 5, 0, 0)
- pci_dev = dev_info.pci_dev;
-#else
pci_dev = RTE_DEV_TO_PCI (dev_info.device);
-#endif
if (pci_dev)
{ /* bonded interface has no pci info */