aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/odp_schedule_eventdev.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-04-26 08:54:52 +0300
committerMatias Elo <matias.elo@nokia.com>2022-04-27 08:45:18 +0300
commit2f869d2698349bf75ec2404d4ab7d7f3b5b4c88b (patch)
treea1a4f8467823b2e4943f74e81dd10bbb1c05ef52 /platform/linux-dpdk/odp_schedule_eventdev.c
parentef063cdc879c566802231523d783e01225bd543c (diff)
linux-dpdk: remove deprecated dpdk code
The supported DPDK versions are currently v19.11 and v20.11. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/odp_schedule_eventdev.c')
-rw-r--r--platform/linux-dpdk/odp_schedule_eventdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/linux-dpdk/odp_schedule_eventdev.c b/platform/linux-dpdk/odp_schedule_eventdev.c
index eb6c782cf..8e2c2c034 100644
--- a/platform/linux-dpdk/odp_schedule_eventdev.c
+++ b/platform/linux-dpdk/odp_schedule_eventdev.c
@@ -25,7 +25,6 @@
#include <rte_eventdev.h>
#include <rte_event_eth_rx_adapter.h>
#include <rte_service.h>
-#include <rte_version.h>
#include <inttypes.h>
#include <string.h>
@@ -97,7 +96,6 @@ static int unlink_port(uint8_t dev_id, uint8_t port_id, uint8_t queue_ids[],
return ret;
}
-#if RTE_VERSION >= RTE_VERSION_NUM(18, 11, 0, 0)
do {
ret = rte_event_port_unlinks_in_progress(dev_id, port_id);
if (ret < 0) {
@@ -107,7 +105,7 @@ static int unlink_port(uint8_t dev_id, uint8_t port_id, uint8_t queue_ids[],
}
odp_cpu_pause();
} while (ret > 0);
-#endif
+
if (queue_ids == NULL)
_odp_eventdev_gbl->port[port_id].linked = 0;