Presently, all the applications would do ethdev init and then pass control to eventmode helper init. So not doing any "real" initialization. But this would be expanded once applications are modified to pass the eth init task also to the helper routine.
Signed-off-by: Anoob Joseph <ano...@marvell.com> Signed-off-by: Lukasz Bartosik <lbarto...@marvell.com> --- lib/librte_eventdev/rte_eventmode_helper.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/librte_eventdev/rte_eventmode_helper.c b/lib/librte_eventdev/rte_eventmode_helper.c index 30bb357..8faa4ea 100644 --- a/lib/librte_eventdev/rte_eventmode_helper.c +++ b/lib/librte_eventdev/rte_eventmode_helper.c @@ -318,6 +318,14 @@ rte_eventmode_helper_initialize_eventdev(struct eventmode_conf *em_conf) return 0; } +static int +rte_eventmode_helper_initialize_ethdev(struct eventmode_conf *em_conf) +{ + RTE_SET_USED(em_conf); + + return 0; +} + int32_t __rte_experimental rte_eventmode_helper_initialize_devs( struct rte_eventmode_helper_conf *mode_conf) @@ -357,6 +365,11 @@ rte_eventmode_helper_initialize_devs( if (ret != 0) return ret; + /* Setup ethdev */ + ret = rte_eventmode_helper_initialize_ethdev(em_conf); + if (ret != 0) + return ret; + /* Start eth devices after setting up adapter */ RTE_ETH_FOREACH_DEV(portid) { -- 2.7.4