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 <changpeng.liu@intel.com>
This commit is contained in:
parent
c233e455bb
commit
2eb9a35323
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user