env/dpdk: allow compiling with DPDK 17.05-rc0 and rc1

FOREACH_DEVICE_ON_PCIBUS macro has been defined since rc2.

Change-Id: Iad61401520735dfde4e5715c32e74a54a2dff7da
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-05-08 19:27:09 +02:00 committed by Daniel Verkamp
parent 45cab335bc
commit 328bc32f31

View File

@ -172,7 +172,7 @@ spdk_pci_get_device(struct spdk_pci_addr *pci_addr)
addr.devid = pci_addr->dev;
addr.function = pci_addr->func;
#if RTE_VERSION >= RTE_VERSION_NUM(17, 05, 0, 0)
#if RTE_VERSION >= RTE_VERSION_NUM(17, 05, 0, 2)
FOREACH_DEVICE_ON_PCIBUS(dev) {
#else
TAILQ_FOREACH(dev, &pci_device_list, next) {