From 2eb9a353238bfdbd57761f632153657f9f569400 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Wed, 3 May 2017 15:07:04 +0800 Subject: [PATCH] env/dpdk: remove rte_eal_device_remove API call since DPDK 17.05 Since DPDK 17.05 API rte_eal_device_insert is only used for virtual device scan and initialization, for PCI devices which use Domain:Bus:Dev:Function, this API is no longer valid. Change-Id: I1ab63dfc3af188d01836e67cd8db745e035fc450 Signed-off-by: Changpeng Liu --- lib/env_dpdk/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/env_dpdk/pci.c b/lib/env_dpdk/pci.c index 84bde3396..28b8dfbef 100644 --- a/lib/env_dpdk/pci.c +++ b/lib/env_dpdk/pci.c @@ -84,7 +84,9 @@ spdk_pci_device_detach(struct spdk_pci_device *device) addr.function = device->addr.function; #if RTE_VERSION >= RTE_VERSION_NUM(16, 11, 0, 0) +#if RTE_VERSION < RTE_VERSION_NUM(17, 05, 0, 0) rte_eal_device_remove(&device->device); +#endif #endif rte_eal_pci_detach(&addr); }