Use method names appropriate for the upcoming DPDK 20.11
@@ -152,6 +152,15 @@ launch_one_lcore(__attribute__((unused)) void *dummy)
int launch_dpdk()
{
+ #if RTE_VERSION >= RTE_VERSION_NUM(20,11,0,0)
+ rte_eal_mp_remote_launch(launch_one_lcore, NULL, CALL_MAIN);
+
+ unsigned lcore_id;
+ RTE_LCORE_FOREACH_WORKER(lcore_id) {
+ if (rte_eal_wait_lcore(lcore_id) < 0)
+ return -1;
+ }
+ #else
rte_eal_mp_remote_launch(launch_one_lcore, NULL, CALL_MASTER);
unsigned lcore_id;
@@ -159,6 +168,7 @@ int launch_dpdk()
if (rte_eal_wait_lcore(lcore_id) < 0)
return -1;
}
+ #endif
return 0;
}
