diff --git a/lib/env_dpdk/pci_dpdk_2211.c b/lib/env_dpdk/pci_dpdk_2211.c index f9b419631..5b7846a59 100644 --- a/lib/env_dpdk/pci_dpdk_2211.c +++ b/lib/env_dpdk/pci_dpdk_2211.c @@ -148,19 +148,34 @@ pci_driver_register_2211(struct spdk_pci_driver *driver, static int pci_device_enable_interrupt_2211(struct rte_pci_device *rte_dev) { +#if RTE_VERSION < RTE_VERSION_NUM(21, 11, 0, 0) + assert(false); + return -1; +#else return rte_intr_enable(rte_dev->intr_handle); +#endif } static int pci_device_disable_interrupt_2211(struct rte_pci_device *rte_dev) { +#if RTE_VERSION < RTE_VERSION_NUM(21, 11, 0, 0) + assert(false); + return -1; +#else return rte_intr_disable(rte_dev->intr_handle); +#endif } static int pci_device_get_interrupt_efd_2211(struct rte_pci_device *rte_dev) { +#if RTE_VERSION < RTE_VERSION_NUM(21, 11, 0, 0) + assert(false); + return -1; +#else return rte_intr_fd_get(rte_dev->intr_handle); +#endif } static int