* [PATCH] examples/ipsec-secgw: fix event dev start sequence
@ 2021-12-02 12:30 Nithin Dabilpuram
2021-12-06 5:38 ` Anoob Joseph
0 siblings, 1 reply; 3+ messages in thread
From: Nithin Dabilpuram @ 2021-12-02 12:30 UTC (permalink / raw)
To: Radu Nicolau, Akhil Goyal; +Cc: dev, jerinj, Nithin Dabilpuram, anoobj, stable
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(+)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] examples/ipsec-secgw: fix event dev start sequence
2021-12-02 12:30 [PATCH] examples/ipsec-secgw: fix event dev start sequence Nithin Dabilpuram
@ 2021-12-06 5:38 ` Anoob Joseph
2021-12-24 13:09 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Anoob Joseph @ 2021-12-06 5:38 UTC (permalink / raw)
To: Nithin Kumar Dabilpuram, Radu Nicolau, Akhil Goyal
Cc: dev, Jerin Jacob Kollanukkaran, Nithin Kumar Dabilpuram, stable
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
> 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>
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 14155 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] examples/ipsec-secgw: fix event dev start sequence
2021-12-06 5:38 ` Anoob Joseph
@ 2021-12-24 13:09 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2021-12-24 13:09 UTC (permalink / raw)
To: Anoob Joseph, Nithin Kumar Dabilpuram, Radu Nicolau
Cc: dev, Jerin Jacob Kollanukkaran, Nithin Kumar Dabilpuram, stable
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
>
> > 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
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 14447 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-24 13:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 12:30 [PATCH] examples/ipsec-secgw: fix event dev start sequence Nithin Dabilpuram
2021-12-06 5:38 ` Anoob Joseph
2021-12-24 13:09 ` Akhil Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).