Spdk/lib/env_dpdk
David Marchand 2e9cd9d7b0 env_dpdk/pci: fix check on 20.11 EAL API change
RTE_DEV_ALLOWED is an enum and has no associated define, hence checking
for its presence will always be false.
We could test for RTE_DEV_WHITELISTED define, but this macro added for
deprecation warning will be dropped in the future.
Switch to a check on DPDK version.

Fixes: 10ed0eb755 ("env_dpdk/pci: adapt to 20.11 EAL changes")
Signed-off-by: David Marchand <david.marchand@redhat.com>
Change-Id: I75270977b580065b36c753266cbaa5fb73f99eb1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5165
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-11-19 14:24:04 +00:00
..
env_internal.h env: add spdk_pci_driver_register() to the public API 2020-07-24 21:42:26 +00:00
env.c env: replace MEMPOOL_F_NO_PHYS_CONTIG with MEMPOOL_F_NO_IOVA_CONTIG 2020-09-29 09:37:44 +00:00
env.mk env_dpdk: add rte_rcu library dependency 2020-10-29 10:39:05 +00:00
init.c lib/env_dpdk: replace printf() and fprintf(stderr,) usage 2020-09-07 09:28:39 +00:00
Makefile env/memory: return the memory virtual address's file descriptor and offset 2020-10-21 20:47:01 +00:00
memory.c env/memory: use stack variable when unmapping the dma region 2020-10-28 15:06:12 +00:00
pci_idxd.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_ioat.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_virtio.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_vmd.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci.c env_dpdk/pci: fix check on 20.11 EAL API change 2020-11-19 14:24:04 +00:00
spdk_env_dpdk.map env/memory: return the memory virtual address's file descriptor and offset 2020-10-21 20:47:01 +00:00
threads.c Revert "thread: add spdk_env_get_primary_core" 2020-07-29 14:58:44 +00:00