From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 97DCE2C66 for ; Mon, 11 Dec 2017 15:04:11 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id t8so14641501wmc.3 for ; Mon, 11 Dec 2017 06:04:11 -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=BPVVF4SWLOBPMOCQvtfBCsWA2/p3ZBtRIT/xSzbtFy8=; b=a3Jksmtt0Wd/ieGxarUMHbMLmYXmVoXsLIkFt7Bzy0KngJ8YFtUd8siR5e/R/jpXBJ BYC6+zrV6CVuJ9D1ZM3Df2LN8zDoE1gSOEabszoth0a/KVe3UOYcev8Z0P6NyV8SUy1k Nz+XcPwFwDrNoeZhe9xxi+9FkYeKqu4sMRspixNdd5rhNqXgH1URERdXeJLElGz8+e0X 1aohaH4W3HUTuWlokpZITilxSu+b2EgIERWQvFXUGwtbUnXaY9y831Fq3zKzgW1M1SQy LMnkz4UZziMYUH0JVuVPbbHCwQgpQP32+q09OIpDfolY2lJi2lwKJQPsnLYKQyK5UEve Uzdw== 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=BPVVF4SWLOBPMOCQvtfBCsWA2/p3ZBtRIT/xSzbtFy8=; b=BpGU15qqaumQQzxIKdAtQFpZfNdJyuXK6olp7JiBEnJ9T5JV580ixgzZCzyKB0KJYj LR/zBgPVOAlvr0GEhu6LCj2tIhgc2AE3r5SDf5KnfAHg9rE4vRgMYetz/B2Rm5iRduxu zDN7BqyUy5U+S5e26UibOeBoXI+NkrwSUnFBpOiupxf2IX0RhGTMezJxYkPQcqr081NZ 9FKvulgqfbHEo3KHBzBWihozRZ6OOM9c/1bO3om6qMRy2IaEJjKIj+1ntBlhIpufAQAM TJLZxlOlgjuU7z9qqp5fzZgvTXRqYe2oGGR6rsv69WaEPmP8Mjzol1cR5zuYEwtDYZ7D fyfw== X-Gm-Message-State: AKGB3mIhFemDZm502QQpn82BCbtCJnda5cKGJtoFcHDstrRtq9vERODR O7i+1fGoCoWYM1CrKNl8zUZ5 X-Google-Smtp-Source: ACJfBoul/DSeGbpoe5QVZMbs45mT/UeqRMzgP+oihtFwh2aFczL62wFScvzfIaHJE7QY1ieFssDPzQ== X-Received: by 10.28.169.198 with SMTP id s189mr975853wme.65.1513001051390; Mon, 11 Dec 2017 06:04:11 -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 a5sm16551079wra.87.2017.12.11.06.04.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 06:04:10 -0800 (PST) From: Nelio Laranjeiro To: Sergio Gonzalez Monroy , Radu Nicolau , Anoob Joseph Cc: dev@dpdk.org, akhil.goyal@nxp.com Date: Mon, 11 Dec 2017 15:04:28 +0100 Message-Id: <89964464de4bf623ba27b88d47af1f1b9e8a64d1.1513000931.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 1/2] 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, 11 Dec 2017 14:04:11 -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 --- 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