From: NĂ©lio Laranjeiro Date: Mon, 18 Dec 2017 10:24:35 +0000 (+0100) Subject: examples/ipsec-secgw: fix missing ingress flow attribute X-Git-Tag: spdx-start~101 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a4cde424aa89cab213e12dfbb93e47871fcfe5dc;p=dpdk.git examples/ipsec-secgw: fix missing ingress flow attribute Generic flow API have both direction bits, ingress and egress for rules which may work on both sides. Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Radu Nicolau Acked-by: Anoob Joseph --- diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index b2493bb01c..a19acb0396 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -176,6 +176,8 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) sa->attr.egress = (sa->direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS); + sa->attr.ingress = (sa->direction == + RTE_SECURITY_IPSEC_SA_DIR_INGRESS); sa->flow = rte_flow_create(sa->portid, &sa->attr, sa->pattern, sa->action, &err); if (sa->flow == NULL) {