diff --git a/lib/env_dpdk/pci.c b/lib/env_dpdk/pci.c index 3af26a6c4e..cf7758ed1c 100644 --- a/lib/env_dpdk/pci.c +++ b/lib/env_dpdk/pci.c @@ -41,7 +41,7 @@ #define SYSFS_PCI_DRIVERS "/sys/bus/pci/drivers" /* Compatibility for versions < 20.11 */ -#ifndef RTE_DEV_ALLOWED +#if RTE_VERSION < RTE_VERSION_NUM(20, 11, 0, 0) #define RTE_DEV_ALLOWED RTE_DEV_WHITELISTED #define RTE_DEV_BLOCKED RTE_DEV_BLACKLISTED #define RTE_BUS_SCAN_ALLOWLIST RTE_BUS_SCAN_WHITELIST