* [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail
@ 2018-01-18 16:07 Radu Nicolau
2018-01-19 12:33 ` Akhil Goyal
2018-01-22 9:44 ` De Lara Guarch, Pablo
0 siblings, 2 replies; 3+ messages in thread
From: Radu Nicolau @ 2018-01-18 16:07 UTC (permalink / raw)
To: dev; +Cc: pablo.de.lara.guarch, declan.doherty, akhil.goyal, Radu Nicolau
After trying RSS and Queue also try End for flow action
to allow for HW that don't support flow features with
inline crypto.
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
examples/ipsec-secgw/ipsec.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index 4ef446d..c1ddda7 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -224,6 +224,12 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa)
ret = rte_flow_validate(sa->portid, &sa->attr,
sa->pattern, sa->action,
&err);
+ /* Try End. */
+ sa->action[1].type = RTE_FLOW_ACTION_TYPE_END;
+ sa->action[1].conf = NULL;
+ ret = rte_flow_validate(sa->portid, &sa->attr,
+ sa->pattern, sa->action,
+ &err);
if (ret)
goto flow_create_failure;
} else if (sa->attr.egress &&
--
2.7.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail
2018-01-18 16:07 [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail Radu Nicolau
@ 2018-01-19 12:33 ` Akhil Goyal
2018-01-22 9:44 ` De Lara Guarch, Pablo
1 sibling, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2018-01-19 12:33 UTC (permalink / raw)
To: Radu Nicolau, dev; +Cc: pablo.de.lara.guarch, declan.doherty
Reviewed-by: Akhil Goyal <akhil.goyal@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail
2018-01-18 16:07 [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail Radu Nicolau
2018-01-19 12:33 ` Akhil Goyal
@ 2018-01-22 9:44 ` De Lara Guarch, Pablo
1 sibling, 0 replies; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2018-01-22 9:44 UTC (permalink / raw)
To: Nicolau, Radu, dev; +Cc: Doherty, Declan, akhil.goyal
> -----Original Message-----
> From: Nicolau, Radu
> Sent: Thursday, January 18, 2018 4:08 PM
> To: dev@dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Doherty,
> Declan <declan.doherty@intel.com>; akhil.goyal@nxp.com; Nicolau, Radu
> <radu.nicolau@intel.com>
> Subject: [PATCH] examples/ipsec-secgw: try end in flow actions before fail
>
> After trying RSS and Queue also try End for flow action to allow for HW that
> don't support flow features with inline crypto.
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Applied to dpdk-next-crypto (already in RC1).
Thanks,
Pablo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-22 9:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-18 16:07 [dpdk-dev] [PATCH] examples/ipsec-secgw: try end in flow actions before fail Radu Nicolau
2018-01-19 12:33 ` Akhil Goyal
2018-01-22 9:44 ` De Lara Guarch, Pablo
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).