From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0075.outbound.protection.outlook.com [104.47.40.75]) by dpdk.org (Postfix) with ESMTP id 4D09F7D04 for ; Tue, 12 Dec 2017 08:14:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ewhQ1flqsKv8Zp5bhUCLWEeiHJ5/r8NzH1YlAt+FVwI=; b=Le7VNZ8+uBTs6PqtktbIZCwhxvJUYatrUNw+Nf1nIeCfcbFGblXC47lbnkbYn3X2T+i8fwU1mtg1ILBZ2RftIMwPuecNNvu8hoxuMC6oTsL98cV6kn110+9fqUODk/TXXjNxcdG1BPWDAGdyZCWOEUN2KN37UzCd0dhWm6Krmmw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from hyd1ajoseph-dt.caveonetworks.com (115.113.156.2) by CY4PR0701MB3636.namprd07.prod.outlook.com (2603:10b6:910:93::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Tue, 12 Dec 2017 07:14:30 +0000 Cc: anoob.joseph@caviumnetworks.com, dev@dpdk.org, akhil.goyal@nxp.com To: Nelio Laranjeiro , Sergio Gonzalez Monroy , Radu Nicolau References: <89964464de4bf623ba27b88d47af1f1b9e8a64d1.1513000931.git.nelio.laranjeiro@6wind.com> From: Anoob Joseph Message-ID: <3d409aea-96b7-a963-7ae7-c8eea77dadb1@caviumnetworks.com> Date: Tue, 12 Dec 2017 12:44:23 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <89964464de4bf623ba27b88d47af1f1b9e8a64d1.1513000931.git.nelio.laranjeiro@6wind.com> Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: CO2PR07CA0058.namprd07.prod.outlook.com (2603:10b6:100::26) To CY4PR0701MB3636.namprd07.prod.outlook.com (2603:10b6:910:93::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 924c15a1-c6bd-431d-3b33-08d5412ffde9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CY4PR0701MB3636; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3636; 3:TwIrFVMZ45LA0Ao0d57RhV8I+jhmhFJkR3XEk1wviE47dE1/Rlh5JTUVwgZ5A2C37cYic5txjaohVELPzfkp42Pyc9vf1ec1jTiGgufncVUdIbrtM0I/rxwEjwClSI0/wI4r1iV7HhlP2G/J8pz+AASZBN/XSGO48SaGYZeNUQfxHiQa3fR5ujnA5ByGHszPpvrnMyaCUma0oKSugZwjNxBkU4N+vHp/nuuTx8Tk6pukbUN93KG1yaN/3ugtS/hK; 25:vhmQqfPvI0BAzSUZAXaASMsVzZhdtMkj0f6nk7hKFYHbORVCCinUyiKMMRoUBovheTAjR/R2hUMucYrLJt3n/ZNFunDr2Tj3R9lDE/hxAINqZYSKCqoLj++jF3hioxEuw8H1jkKZkaCK06XRVN7VB5OCO0c1HOh7N1Yknkmd98jnpa1FcLcEuthmn1HzpYW50ktG26hic8GbdSmtNqY/zYaI+rJOdLU/7kjbpqc9r9p0WjTD9kHoR1D8G9S1y/zGFTuWvN7drT0I07D+xIbZZxK8VkgqZeXrCn1byEZNnbczP8xbqt3cZkg6Ya3C7HppmLhiI+WsazBCefjCcTcrUw==; 31:kob/EWwKMLZqXjo8SfeC2ma2XvL5VbccO7+Z+i02MQPA9tJi6l36BpZDjV4ZPwxAatXnpO9MDbcFZd688HvUm6h8JahH0cCsH0uQceHDekjDRDn3/fwVGjnix607qvCxnRtAJa9lW9//geSEAKLmfvWHMQhkMTyM4GQwAsstGDCcgkz0UVh2qFOQIHBmD38Sw4xdNr92BXUKm3MYMTSgpGYPVXj2lQiKscw1bVBtUcQ= X-MS-TrafficTypeDiagnostic: CY4PR0701MB3636: X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3636; 20:iC7Nkd0XYHKMSHLinBNJS4hXsLMXMAOPKlHcE/f83YjHsIkrmq7MDISms24JNDoc8DvTb5+7GpZbCyhF4cDE1tajFKmrQG0SyDNA4QF8iAn5zOLuDo7Et0p5H1fUuIa2OgPeSLffh8ADTooTWJMEGxjG1rXOM/JmkfsTpf4SOwNyVf0udWtw+c7bLuFHMNNqJZOMFwRB5HDygJS8GhK1Lp2ST6EveMagEVtGhpPA2t3DRqzxVoDvpcXrzuAeci0yaOvmLup9OZttov1pBM8/MyA0/jkSHURf0Hgw79bVtsMMmmNyCd2MGReR2MEtGUxxi3szKqu1GyER8OdFu52eAqVtQRAKkNMcr9/+Wfx2l9bKStlfmIylsq/0ZibWJVs+XDw+t5qi31nLq2YGb9z5wE9f6o+Mje3dflgQHg99OtxAvXfKbJxfElsT9GNpkB/vK73sGV3rZOBaIzmPZ8MZJQhUngxv+UnxNK56lzsOW31ns7T1tjGNqPreaMOa6kpcYmCcfGBDR0gzH1BY+WgDp0jIH0l6H4G1Y8phnDPqRLD8uGE3O0Orj3L3vbyHseEZDBIMq6o+dJN8lFwvPPdjP7V3OtV8Vajw6CgGaFMav7A= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3002001)(3231023)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(6072148)(201708071742011); SRVR:CY4PR0701MB3636; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR0701MB3636; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3636; 4:iJ57gBpINFOh4iq4rqy+EaneW35zvO6XbE4g5D+uaG1LyBVSsWMUWJeqKVJm/QaPmMyCosd6DF+BTEfjK7508VVI+BoISXkgLLcM1qdwpLXAJmxQPerXBGoNoNXR1wNfOS/ZgYToTwRSNyzWaK+X6uvRf0YPbWayDSao5qcZIB6Z1CxuJseYA2YDQEcvHu9ckblmoCXmVLfW4WjS4GN/wc+Uki70TgVIZHDAlXAQ11S0Xl0Tzig6sPOid88ZLbOqaw+JRWAG3B+2Mr+asIIxM/l9+Ecn3HI+3+3SCG8lM4oJhZQbRXY+CkZsZ2tLaeDCSSOFBf2BONs7pkGKIWwTQ1SHf0+ZJ0kiDpK5RntdBnPgze2Bnj7PuSMeCrjGwnsT X-Forefront-PRVS: 051900244E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(24454002)(199004)(189003)(65826007)(52116002)(97736004)(25786009)(65806001)(66066001)(65956001)(2950100002)(229853002)(76176011)(42882006)(6666003)(31696002)(270700001)(33964004)(68736007)(8936002)(69596002)(55236003)(8676002)(81166006)(6116002)(81156014)(64126003)(3846002)(53416004)(16586007)(31686004)(105586002)(5660300001)(58126008)(72206003)(59450400001)(2906002)(106356001)(6246003)(316002)(4326008)(37036004)(53546010)(478600001)(6486002)(8656006)(236005)(53936002)(54896002)(84326002)(7736002)(36756003)(83506002)(110136005)(6506006)(6512007)(16526018); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3636; H:hyd1ajoseph-dt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR0701MB3636; 23:Mx96SbAHJESLezHBs9/Qdd1IyxMAyY0yXmFcsdP?= =?us-ascii?Q?W3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vc5GIlTfuEpIcDByWHStl6gu9AsRm3mEbl8fDwOYlED2Wz8plD3QebOVKCoHBQPyrigRIE9+sKNPts=; 24:bdcT6nTDlAyVQRI/g7M6hZLEAIpoY7wVULUbi+0f33NwI6Mc8aCDL7V7SyHN1ZIph9RvULq7kbyKY/SAda3/sIqhtmlGvj5eNqg5ZKMwBhk=; 7:Osr3fRsijhW3DpWwnZQqIxyHU5JUFZMg0Ymezbnbxw1tjA7Fjr7k41/XFii6esxP4mAhY6RjmfZr4/fZPMc4d7IaSSDdBawHa8qgtiW2DKSr2v+r15TbaUmgzy7if+gfoXjXLJ5pYzxouCzUDkQbcmOcpC3sHuQ2Sa1aY3JrIjGqJWZ9XTHb2fYPHDAjpL+NrUYOwJvWWMaSikUOi+aNTw3xMfZNFkYc4j82GtuAMXm47vv4fnw7bMdry6v51e9Z SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 07:14:30.1208 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 924c15a1-c6bd-431d-3b33-08d5412ffde9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3636 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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: Tue, 12 Dec 2017 07:14:35 -0000 On 12/11/2017 07:34 PM, Nelio Laranjeiro wrote: > 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) {