From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id A560F23D for ; Mon, 18 Dec 2017 11:24:55 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id o2so13532957wro.5 for ; Mon, 18 Dec 2017 02:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HYh3JHgSNLEOmHt3GMSfCBCGBjQc/c7lrNyB2Eznp2c=; b=u4xQHagdSNWTWd92Tr60wsTB159luBVHs6kjGAIAUiT//xZVlx/5qoH9EwZW8qgJL4 qcXMb1kpGzc3PwJa5E/sAH5F76fE92Jns8vEZk0GM+hoLWqHYUPiZwkvbKM+TcFggZuq 3lcSpdg2gXnA+9F01cXaG3A45+vRSLslKSjbsHmIPhJNzcc7vNhO+a6FixkeNO/VEdRu +4Zxwzbm9MlGeDrv72i1/TWtO4Xh9nvaoB8Egsv6iPUCZyrT04facXD8t4s3e9eHg9xL BFFAJIKj5mHE1kgHdYHwIRI376nLvWQUDcdDw75B3inQh6tF2f0PKgZDh138WNPAF2os gTJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HYh3JHgSNLEOmHt3GMSfCBCGBjQc/c7lrNyB2Eznp2c=; b=BMLsGwaYsS6y0IFJXISgz+p7ZOEsfNUsgu6jsAUmi0DZ+eHSwOnC+6V07fE6Ty9nI+ HAiNrRChbY5dwcHGDMD2THA19KVbwRZ4hESMn/6KjdloHnCQp3XbfTmyMdMtzGmoZ02o 0JvidIOMOS5VhO/KJik623qfFAJOkGGSL9wEwQ7TC8/s23ioYmU7BqjmvE7wdBRHa9uC NX4dPp3Cir54UMhTfeWzsy0yTr5VHAebhn6Bzr/izDC6HvN/gMNn44pNQ5Lhgp6sci+E P2iMEY7k00ANKsg5+/oPV1v+zLzS9pLg7N6RUfBwIQ32PzgcdSKjLO/3cYD5xawt/O2k dfqA== X-Gm-Message-State: AKGB3mKE1ul5xdLvFxNimbEcRURhf8OVYQpds2d+LeyZW++wCsSRCdAQ Lbw9MmBd2vVGKwcQ7OTq1fmw X-Google-Smtp-Source: ACJfBovdERIuCkULn2FdiwTNoAntO0NnedeDqtKRiOOoxUMHrDTot5R0fddjIlFADpy+by131fW2BA== X-Received: by 10.223.148.102 with SMTP id 93mr18050586wrq.32.1513592695220; Mon, 18 Dec 2017 02:24:55 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id b78sm9970702wmi.18.2017.12.18.02.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 02:24:54 -0800 (PST) From: Nelio Laranjeiro To: Sergio Gonzalez Monroy , Radu Nicolau , Anoob Joseph Cc: dev@dpdk.org, akhil.goyal@nxp.com Date: Mon, 18 Dec 2017 11:24:35 +0100 Message-Id: <1838395b74a2f9e63e0c3d32fee0356f915cf88d.1513592582.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <89add3272024fefe644a9e636a476c85d39e398b.1513264386.git.nelio.laranjeiro@6wind.com> References: <89add3272024fefe644a9e636a476c85d39e398b.1513264386.git.nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH v5 1/3] examples/ipsec-secgw: fix missing ingress flow attribute X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 10:24:55 -0000 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: akhil.goyal@nxp.com Signed-off-by: Nelio Laranjeiro Acked-by: Radu Nicolau Acked-by: Anoob Joseph --- examples/ipsec-secgw/ipsec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index ec8bf95e1..17bd7620d 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -205,6 +205,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) { -- 2.11.0