From: Radu Nicolau Date: Thu, 18 Jan 2018 16:07:38 +0000 (+0000) Subject: examples/ipsec-secgw: try end in flow actions before fail X-Git-Tag: spdx-start~92 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6138c2daece4e763db54fa1320ef95963d3aad00;p=dpdk.git 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 Reviewed-by: Akhil Goyal --- diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index a478b6ec6b..5fb5bc16e7 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -221,6 +221,12 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) &(struct rte_flow_action_queue){ .index = 0, }; + 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);