From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radu Nicolau Subject: [PATCH] examples/ipsec-secgw: try end in flow actions before fail Date: Thu, 18 Jan 2018 16:07:38 +0000 Message-ID: <1516291658-15360-1-git-send-email-radu.nicolau@intel.com> Cc: pablo.de.lara.guarch@intel.com, declan.doherty@intel.com, akhil.goyal@nxp.com, Radu Nicolau To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C33891B344 for ; Thu, 18 Jan 2018 17:12:55 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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