Commit 2eb9a353 authored by Changpeng Liu's avatar Changpeng Liu
Browse files

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: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent c233e455
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
}