From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 96D0E239 for ; Thu, 14 Dec 2017 16:13:44 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id r78so12003798wme.5 for ; Thu, 14 Dec 2017 07:13:44 -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=p31vntvEwa7ld6TYDe53xmZbNMJ05asPdFOFQWdfPyGL+l+tHHC8Kou2Z9yn35beUq e7UrqsGRJCy40Fkvu9CU6EHR0/qo4yKu4+i03XjHSVjoE//Z0NplAkJA3nncBvghLatW 7TFLFWG6UX7ZFlsR6O01D1uXAk3snEEZKKOilDWriCnfxQ2XqUC/XnqXumPjfNWDaR1Y tbJHc0Fpw3EIWQngwDfQySmj0HG/RM4Xpf+pBrhSb90Bh5Zh7gERAH1mpd8CYkV2BvJP SANJdpngbgCW5s0Zf/aAgmKKYJvFc+BTFtzIAa+TmeU33lAigzDThjpHtlu0j6kmzoTs gR5g== 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=jFTuVYUJHjOHOjHWgqy+xTWjWtzCkSHXel3RjVFHnRPCj74iGe0yLW199MJpnBBAoP ewQ35dyke7jq013cS4+huCg5nCi8wsXIdXH1uFi7utCqI/BLXCCwU8A7bBwmKV6LUE68 l7WQjngsEGkrpTqWNjYzoNT+N2Lj+Gb2lEzV3JwgJ5ccssL+byHZKu5NuVXZ0uLnmyEJ QEa7ncCrlgyRY1ZjfI9gul9pX/j8EOLoqBYzIOic4z9wNFAv81/fhO/h9Ax1Oy8KVtNC wFd8NvE0EedPugyLfYrGZiOOsb1epbXsI8ylxzxBMfIv9guri5uI9acMQjy2FsCQvc9u Ayhg== X-Gm-Message-State: AKGB3mLbMmY78vOyrT0pDRfWBm903tXSixFg+Z64M67lPLRZ+rHY14rL kGlhhyJiVYToBiLA035Qx/rY X-Google-Smtp-Source: ACJfBovPEy7LUgZjnyi7h0/qRL8z68YXICA9TpboOrxjHKhyprEXYDvFbVXRbZpVEt1a8Fw+HCQ9/A== X-Received: by 10.80.149.152 with SMTP id w24mr12969065eda.76.1513264424316; Thu, 14 Dec 2017 07:13:44 -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 d9sm3876178edb.18.2017.12.14.07.13.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 07:13:43 -0800 (PST) From: Nelio Laranjeiro To: Sergio Gonzalez Monroy , Radu Nicolau , Anoob Joseph Cc: dev@dpdk.org, akhil.goyal@nxp.com Date: Thu, 14 Dec 2017 16:14:08 +0100 Message-Id: <1838395b74a2f9e63e0c3d32fee0356f915cf88d.1513264386.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <5d3fdd0c05d5f8afd3f8e38ca03eaf25187d5c98.1513000931.git.nelio.laranjeiro@6wind.com> References: <5d3fdd0c05d5f8afd3f8e38ca03eaf25187d5c98.1513000931.git.nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH v4 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: Thu, 14 Dec 2017 15:13:44 -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