From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6F609199B0; Wed, 17 Jan 2018 17:54:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 08:54:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,372,1511856000"; d="scan'208";a="22446880" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2018 08:54:14 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by irsmsx105.ger.corp.intel.com ([169.254.7.236]) with mapi id 14.03.0319.002; Wed, 17 Jan 2018 16:54:13 +0000 From: "De Lara Guarch, Pablo" To: "Nicolau, Radu" , Akhil Goyal , "dev@dpdk.org" CC: "hemant.agrawal@nxp.com" , "Gonzalez Monroy, Sergio" , "stable@dpdk.org" Thread-Topic: [PATCH] examples/ipsec-secgw: fix corner case for spi value Thread-Index: AQHTitOqvMdrysjBUEypj/Ma6PScC6N2XSGAgAH0B1A= Date: Wed, 17 Jan 2018 16:54:13 +0000 Message-ID: References: <20180111115536.20346-1-akhil.goyal@nxp.com> <763A2F19A5EFF34F8B7F1657C992EE297B30E79E@IRSMSX104.ger.corp.intel.com> In-Reply-To: <763A2F19A5EFF34F8B7F1657C992EE297B30E79E@IRSMSX104.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWViODM3ZDktMzQ4NS00MTc5LWJkNmEtNWI2NjEzMThlOGMxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlBwbzFWZ3NpdTBDSkZvaTVXMU1Hb2pQTnNXRjZwMHdZSVRNYWFOeTdZbGs9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix corner case for spi value 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: Wed, 17 Jan 2018 16:54:18 -0000 > -----Original Message----- > From: Nicolau, Radu > Sent: Tuesday, January 16, 2018 11:02 AM > To: Akhil Goyal ; dev@dpdk.org > Cc: De Lara Guarch, Pablo ; > hemant.agrawal@nxp.com; Gonzalez Monroy, Sergio > > Subject: RE: [PATCH] examples/ipsec-secgw: fix corner case for spi value >=20 >=20 >=20 > > -----Original Message----- > > From: Akhil Goyal [mailto:akhil.goyal@nxp.com] > > Sent: Thursday, January 11, 2018 11:56 AM > > To: dev@dpdk.org > > Cc: De Lara Guarch, Pablo ; > > hemant.agrawal@nxp.com; Gonzalez Monroy, Sergio > > ; Nicolau, Radu > > ; Akhil Goyal > > Subject: [PATCH] examples/ipsec-secgw: fix corner case for spi value > > > > application is using index 0 of SA table as error, with current value > > of > > IPSEC_SA_MAX_ENTRIES(128) it can not support SA with spi =3D 128, as it > > uses sa_idx =3D 0 in the SA table. > > > > With this patch, sa_idx =3D 0 can also be used. > > > > PS: spi =3D 0 is an invalid SPI and application throws error for it. > > > > Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample > > application") > > > > Signed-off-by: Akhil Goyal > > --- > Acked-by: Radu Nicolau CC'ing stable ML. Applied to dpdk-next-crypto. Thanks, Pablo