* [PATCH] examples/ipsec-secgw: fix default flow rule creation
@ 2021-12-17 12:44 Nithin Dabilpuram
2021-12-24 13:11 ` Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Nithin Dabilpuram @ 2021-12-17 12:44 UTC (permalink / raw)
To: Radu Nicolau, Akhil Goyal
Cc: dev, jerinj, Nithin Dabilpuram, adwivedi, stable
Fix default flow rule to create after ethdev start to align
wit RTE flow spec.
Fixes: 513f192b5fd4 ("examples/ipsec-secgw: add default flow for inline Rx")
Cc: adwivedi@marvell.com
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
examples/ipsec-secgw/ipsec-secgw.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index bf3dbf6..8e2aa46 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -3379,13 +3379,14 @@ main(int32_t argc, char **argv)
if ((enabled_port_mask & (1 << portid)) == 0)
continue;
- /* Create flow before starting the device */
- create_default_ipsec_flow(portid, req_rx_offloads[portid]);
-
ret = rte_eth_dev_start(portid);
if (ret < 0)
rte_exit(EXIT_FAILURE, "rte_eth_dev_start: "
"err=%d, port=%d\n", ret, portid);
+
+ /* Create flow after starting the device */
+ create_default_ipsec_flow(portid, req_rx_offloads[portid]);
+
/*
* If enabled, put device in promiscuous mode.
* This allows IO forwarding mode to forward packets
--
2.8.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH] examples/ipsec-secgw: fix default flow rule creation
2021-12-17 12:44 [PATCH] examples/ipsec-secgw: fix default flow rule creation Nithin Dabilpuram
@ 2021-12-24 13:11 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2021-12-24 13:11 UTC (permalink / raw)
To: Nithin Kumar Dabilpuram, Radu Nicolau
Cc: dev, Jerin Jacob Kollanukkaran, Nithin Kumar Dabilpuram,
Ankur Dwivedi, stable
> Subject: [PATCH] examples/ipsec-secgw: fix default flow rule creation
>
> Fix default flow rule to create after ethdev start to align
> wit RTE flow spec.
>
> Fixes: 513f192b5fd4 ("examples/ipsec-secgw: add default flow for inline Rx")
> Cc: adwivedi@marvell.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
> ---
Acked-by: Akhil Goyal <gakhil@marvell.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-24 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 12:44 [PATCH] examples/ipsec-secgw: fix default flow rule creation Nithin Dabilpuram
2021-12-24 13:11 ` 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).