From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 07165A00E6 for ; Thu, 18 Apr 2019 16:59:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 140011BB9A; Thu, 18 Apr 2019 16:59:03 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 73F031BB92; Thu, 18 Apr 2019 16:59:01 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 07:59:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,366,1549958400"; d="scan'208";a="135452262" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga008.jf.intel.com with ESMTP; 18 Apr 2019 07:58:59 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.82]) by IRSMSX152.ger.corp.intel.com ([169.254.6.225]) with mapi id 14.03.0415.000; Thu, 18 Apr 2019 15:58:48 +0100 From: "Iremonger, Bernard" To: Akhil Goyal , "dev@dpdk.org" , "Ananyev, Konstantin" CC: "stable@dpdk.org" Thread-Topic: [PATCH v4 1/2] examples/ipsec-secgw: fix 1st packet dropped for inline crypto Thread-Index: AdT17cOXTZn2OC8PMkWGDcNcFHiBSwABq5Ww Date: Thu, 18 Apr 2019 14:58:47 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260D8B6D9@IRSMSX108.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWVmMGZkZWYtOGIxZS00YjRmLTlkNDEtYjgyNzVkMmJmMDA5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUXN3bUVxZlwvbWFnTDVIN2tIQ3hjS2tjYk02RXRIdXgxMmJuRDczcWMrMmxXbnpzSjdHQXBqcXVmMzhtemVCb1IifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 1/2] examples/ipsec-secgw: fix 1st packet dropped for inline crypto 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190418145847.LjUCYjsBJp9MPDpHZwCVqgv3EzBMfo1WiKaoDgOmU1U@z> Hi Akhil, > Subject: RE: [PATCH v4 1/2] examples/ipsec-secgw: fix 1st packet dropped > for inline crypto =20 > > + if (sa->type =3D=3D > RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) { > > + ctx =3D (struct rte_security_ctx *) > > + rte_eth_dev_get_sec_ctx(sa->portid); >=20 > This is breaking the lookaside mode. Ctx was retrieved using the ipsec_ct= x- > >tbl struct rte_security_ctx *ctx =3D (struct rte_security_ctx *) > rte_cryptodev_get_sec_ctx( > ipsec_ctx->tbl[cdev_id_qp].id); >=20 > I am looking into it, but I don't have time left to get it integrated in = RC2. So > this has to be pushed to RC3 Unfortunately we do not have the HW to test this feature. What HW are you using to test this? Having looked at the code previously ipsec_ctx->tbl[cdev_id_qp].id turned out to be the port_id. So we had expected it to work. We will need your help with this. Regards, Bernard.