Start eventdev after complete initialization of event dev, rx adapter and tx adapter.
Fixes: e0b0e55c8f15 ("examples/ipsec-secgw: add framework for event helper") Cc: ano...@marvell.com Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram <ndabilpu...@marvell.com> --- examples/ipsec-secgw/event_helper.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c index e8600f5..ab96773 100644 --- a/examples/ipsec-secgw/event_helper.c +++ b/examples/ipsec-secgw/event_helper.c @@ -716,6 +716,16 @@ eh_initialize_eventdev(struct eventmode_conf *em_conf) } } + return 0; +} + +static int +eh_start_eventdev(struct eventmode_conf *em_conf) +{ + struct eventdev_params *eventdev_config; + int nb_eventdev = em_conf->nb_eventdev; + int i, ret; + /* Start event devices */ for (i = 0; i < nb_eventdev; i++) { @@ -1688,6 +1698,13 @@ eh_devs_init(struct eh_conf *conf) return ret; } + /* Start eventdev */ + ret = eh_start_eventdev(em_conf); + if (ret < 0) { + EH_LOG_ERR("Failed to start event dev %d", ret); + return ret; + } + /* Start eth devices after setting up adapter */ RTE_ETH_FOREACH_DEV(port_id) { -- 2.8.4