From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <fiona.trahe@intel.com> Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 622E65B12 for <dev@dpdk.org>; Fri, 2 Mar 2018 10:53:37 +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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2018 01:53:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,411,1515484800"; d="scan'208";a="34102855" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga004.fm.intel.com with ESMTP; 02 Mar 2018 01:53:33 -0800 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.188]) by IRSMSX153.ger.corp.intel.com ([169.254.9.213]) with mapi id 14.03.0319.002; Fri, 2 Mar 2018 09:53:32 +0000 From: "Trahe, Fiona" <fiona.trahe@intel.com> To: Ahmed Mansour <ahmed.mansour@nxp.com>, "Verma, Shally" <Shally.Verma@cavium.com>, "dev@dpdk.org" <dev@dpdk.org> CC: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>, "Athreya, Narayana Prasad" <NarayanaPrasad.Athreya@cavium.com>, "Gupta, Ashish" <Ashish.Gupta@cavium.com>, "Sahu, Sunila" <Sunila.Sahu@cavium.com>, "Challa, Mahipal" <Mahipal.Challa@cavium.com>, "Jain, Deepak K" <deepak.k.jain@intel.com>, Hemant Agrawal <hemant.agrawal@nxp.com>, "Roy Pledge" <roy.pledge@nxp.com>, Youri Querry <youri.querry_1@nxp.com>, "Trahe, Fiona" <fiona.trahe@intel.com> Thread-Topic: [dpdk-dev] [PATCH] compressdev: implement API Thread-Index: AQHTnFNA34V0d0oQkkqZkaaruzarZKO83QBg Date: Fri, 2 Mar 2018 09:53:32 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B4358932A333@IRSMSX101.ger.corp.intel.com> References: <1517595924-25963-1-git-send-email-fiona.trahe@intel.com> <12544144.czVLKRyaz4@xps> <348A99DA5F5B7549AA880327E580B43589325187@IRSMSX101.ger.corp.intel.com> <DB3PR0402MB38526FF01E8A29D9CA8D70F1E1C30@DB3PR0402MB3852.eurprd04.prod.outlook.com> <CY4PR0701MB3634DA710D8EC11BF60A688AF0C10@CY4PR0701MB3634.namprd07.prod.outlook.com> <DB3PR0402MB3852AB6E2BB21C85FE9E6B15E1C10@DB3PR0402MB3852.eurprd04.prod.outlook.com> <MWHPR0701MB364183B1F3D3E0AE0B5FF83CF0C00@MWHPR0701MB3641.namprd07.prod.outlook.com> <348A99DA5F5B7549AA880327E580B4358932983C@IRSMSX101.ger.corp.intel.com> <CY4PR0701MB3634E08FB097B9D530C73FBFF0C60@CY4PR0701MB3634.namprd07.prod.outlook.com> <348A99DA5F5B7549AA880327E580B43589329F78@IRSMSX101.ger.corp.intel.com> <DB3PR0402MB3852C0D572F604E44B058C17E1C50@DB3PR0402MB3852.eurprd04.prod.outlook.com> In-Reply-To: <DB3PR0402MB3852C0D572F604E44B058C17E1C50@DB3PR0402MB3852.eurprd04.prod.outlook.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzg2YzI0NDYtODdlMC00YThlLWE1NWUtNmJjZjM4NWE3ZDdiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InBWejVvTDVxeUFjelphUmQ3SG1wWVpTVkZJZWtVTHoyZUFYZ0tZRHV6TGc9In0= 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] compressdev: implement API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Fri, 02 Mar 2018 09:53:37 -0000 > -----Original Message----- > From: Ahmed Mansour [mailto:ahmed.mansour@nxp.com] > Sent: Friday, March 2, 2018 12:56 AM > To: Trahe, Fiona <fiona.trahe@intel.com>; Verma, Shally <Shally.Verma@cav= ium.com>; dev@dpdk.org > Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Athreya, Nara= yana Prasad > <NarayanaPrasad.Athreya@cavium.com>; Gupta, Ashish <Ashish.Gupta@cavium.c= om>; Sahu, Sunila > <Sunila.Sahu@cavium.com>; Challa, Mahipal <Mahipal.Challa@cavium.com>; Ja= in, Deepak K > <deepak.k.jain@intel.com>; Hemant Agrawal <hemant.agrawal@nxp.com>; Roy P= ledge > <roy.pledge@nxp.com>; Youri Querry <youri.querry_1@nxp.com> > Subject: Re: [dpdk-dev] [PATCH] compressdev: implement API >=20 > On 3/1/2018 9:41 AM, Trahe, Fiona wrote: > > Hi Shally > > > > //snip// > >> [Shally] This looks better to me. So it mean app would always call xfo= rm_init() for stateless and attach > an > >> updated priv_xform to ops (depending upon if there's shareable or not)= . So it does not need to have > >> NULL pointer on priv_xform. right? > >> > > [Fiona] yes. The PMD must return a valid priv_xform pointer. >=20 > [Ahmed] What I understood is that the xform_init will be called once > initially. if the @flag returned is NONE_SHAREABLE then the application > must not attach two inflight ops to the same @priv_xform? Otherwise the > application can attach many ops in flight to the @priv_xform? [Fiona Yes. App calls the xform_init() once on a device where it plans to s= end stateless ops. If PMD returns shareable, then it doesn't need to call again and can attach= this to every stateless op going to that device. If PMD returns SINGLE_OP then it must call xform_init() before every other= =20 stateless op it wants to have inflight simultaneously. This does not mean i= t must be called before every op,=20 but probably will set up a batch of priv_xforms - it can reuse each priv_x= form once the op finishes with it.