From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id DA1BF1C00 for ; Mon, 4 Dec 2017 15:11:24 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id f140so14521793wmd.2 for ; Mon, 04 Dec 2017 06:11:24 -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=DBFlvqJrxn7NDSYtiMB8yjfMBOHDoSNu8jP9muyNoCg=; b=TScdYlMi7pEcGSHqBOfPI3Z1lIxJtGGWVOeaDuyHC/QIT6uMSqQGJ/X37cfE/GvV5u Cd5bUu6KJYd/rhPtzoj6KV5/8KFIG2/nEzKJJEA2xc5mNURiUVPKcnexSyoHffifop+l Qu0A3SkQzUWWgJFB0gE3Prcy9+fvGSNNJ4ngKeOb4eM32jOUpqsec662Un103o4EFL1k 0nvT2Q16/I+UsrYphph91+s0Hk32waQi7PBfbpw6OyabQRp7bgvjGn4PNM0WYHeopcIQ MDEYtRHn1igZzz8NwOhSwazfFJv8+pVqVmRE+L/Vmg0fDEd62Kcnom9q20fuANmneE/J iY7A== 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=DBFlvqJrxn7NDSYtiMB8yjfMBOHDoSNu8jP9muyNoCg=; b=nOH47wPpGG+LZsnh2gck4b8QZyPbq03+ThlgTKXDDR/3gXI8bKuFYn7jA/PXg8BF3k Fz0qBhsY6Lthnk0w6EOC2T7/pEF1Xomfj4q1aEIdN011H2Aqg56jpSw4GqTx85ScCk8v 2ecrfjyinverZC0/82t2EQ+NvS/+K6pKTXvSc+Ye5lKqj4Kv+NxWqmEk5LGV3aaDsfYd 5DUMkbIe3e9WNu4GP4ByOgItpRqWuaZJ9MNAUbvUc10AmatLo2izGed84X14DalrhN1/ UcbnOqyI2cZRWsTdvN+MyF2WdjKFyEe4iNb5eh0GbrtQCQXY5oteTvIZBqbxjzz9Ma8R VG+w== X-Gm-Message-State: AJaThX7F+g68AjIgvO10Unkqe77X8XOq7sjZxmuMvicbuc49OyWOsxa3 BPlP4WSqza2/9nz3IzkSMWQO X-Google-Smtp-Source: AGs4zMalMYu9sn4U4pYEvmHi6w97KYE01VwNFAfQGNeL76MRNLj0GHI4VbiGS0+Kuuh437sMq8ZmFA== X-Received: by 10.28.208.205 with SMTP id h196mr8258048wmg.160.1512396684634; Mon, 04 Dec 2017 06:11:24 -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 h7sm14135528wrb.35.2017.12.04.06.11.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 06:11:24 -0800 (PST) From: Nelio Laranjeiro To: Sergio Gonzalez Monroy , Radu Nicolau , Anoob Joseph Cc: dev@dpdk.org, akhil.goyal@nxp.com Date: Mon, 4 Dec 2017 15:11:27 +0100 Message-Id: <8fd6c8881517f9d6bd5dfbef9cfb2071891c0cb1.1512396570.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <6ac80a2be156911ee35c894924a02f04c43f49fc.1511449894.git.nelio.laranjeiro@6wind.com> References: <6ac80a2be156911ee35c894924a02f04c43f49fc.1511449894.git.nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH v2 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, 04 Dec 2017 14:11:25 -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 --- 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