diff mbox series

examples/ipsec-secgw: fix event dev start sequence

Message ID 20211202123036.2068-1-ndabilpuram@marvell.com (mailing list archive)
State Accepted
Delegated to: akhil goyal
Headers show
Series examples/ipsec-secgw: fix event dev start sequence | expand

Checks

Context Check Description
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Nithin Dabilpuram Dec. 2, 2021, 12:30 p.m. UTC
Start eventdev after complete initialization of event dev,
rx adapter and tx adapter.

Fixes: e0b0e55c8f15 ("examples/ipsec-secgw: add framework for event helper")
Cc: anoobj@marvell.com
Cc: stable@dpdk.org

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
 examples/ipsec-secgw/event_helper.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Anoob Joseph Dec. 6, 2021, 5:38 a.m. UTC | #1
> Subject: [PATCH] examples/ipsec-secgw: fix event dev start sequence
> 
> Start eventdev after complete initialization of event dev, rx adapter and tx
> adapter.
> 
> Fixes: e0b0e55c8f15 ("examples/ipsec-secgw: add framework for event
> helper")
> Cc: anoobj@marvell.com
> Cc: stable@dpdk.org
> 
> Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>

Acked-by: Anoob Joseph <anoobj@marvell.com>
Akhil Goyal Dec. 24, 2021, 1:09 p.m. UTC | #2
> 
> > Subject: [PATCH] examples/ipsec-secgw: fix event dev start sequence
> >
> > Start eventdev after complete initialization of event dev, rx adapter and tx
> > adapter.
> >
> > Fixes: e0b0e55c8f15 ("examples/ipsec-secgw: add framework for event
> > helper")
> > Cc: anoobj@marvell.com
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
> 
> Acked-by: Anoob Joseph <anoobj@marvell.com>

Applied to dpdk-next-crypto
diff mbox series

Patch

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) {