From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0062.outbound.protection.outlook.com [104.47.0.62]) by dpdk.org (Postfix) with ESMTP id EBB835F24 for ; Fri, 2 Mar 2018 20:48:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2GO8VswPqwfOfKK617my9lrgRnOdLakRiO6x3pb6TWw=; b=SO8dYVbbYdXCjZsxCmGj6360ZTsuEpdoMoKwQqXBxhC0RxfvfqCwwpQinwaAo/Dw+ZEMPtzbI7rj3cgPKnZvObqPAMpg1MknfKH/iVAq5r+NRmFqnNxP9uGWLZ4LsY+YqTnwCwvvgQPvjx8qY0No5BNksqnESNj/MpP4Hej39JU= Received: from AM0PR0402MB3842.eurprd04.prod.outlook.com (52.133.39.138) by AM0PR0402MB3650.eurprd04.prod.outlook.com (52.133.38.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Fri, 2 Mar 2018 19:48:44 +0000 Received: from AM0PR0402MB3842.eurprd04.prod.outlook.com ([fe80::28a2:ee3e:4f18:5f86]) by AM0PR0402MB3842.eurprd04.prod.outlook.com ([fe80::28a2:ee3e:4f18:5f86%13]) with mapi id 15.20.0548.013; Fri, 2 Mar 2018 19:48:43 +0000 From: Ahmed Mansour To: "Trahe, Fiona" , "Verma, Shally" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" , "Athreya, Narayana Prasad" , "Gupta, Ashish" , "Sahu, Sunila" , "Challa, Mahipal" , "Jain, Deepak K" , Hemant Agrawal , Roy Pledge , Youri Querry Thread-Topic: [dpdk-dev] [PATCH] compressdev: implement API Thread-Index: AQHTnFM5yhoAdd9nE0i9ZEIaZBO9+Q== Date: Fri, 2 Mar 2018 19:48:43 +0000 Message-ID: References: <1517595924-25963-1-git-send-email-fiona.trahe@intel.com> <12544144.czVLKRyaz4@xps> <348A99DA5F5B7549AA880327E580B43589325187@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B4358932983C@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B43589329F78@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B4358932A333@IRSMSX101.ger.corp.intel.com> Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ahmed.mansour@nxp.com; x-originating-ip: [192.88.168.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0402MB3650; 7:Za4dYfp6cZ4O/NgqvK1RDmzXYyEiw2wEH6IGgcfdHpobr6fysAx5IOSfZ+zefela1Zc2YT1+oSTnj6F9+7tmrpIHtzPuuLt3pLIp/a5DUitN0rIQ6Sl2oIlb2xanN4kffMTA8FO4cvko2bjlOJGIlcwtlZuQyVi8F6a21LxgdJSXp/A7M2XHugzQhMQmlXLr35L+ve/x3b+WyxpKHxOHtb410o9YhKEEzX0pw2kLUdaCrbnlL+RZ+dhfXMtGgC8b x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(366004)(376002)(346002)(199004)(189003)(316002)(2900100001)(54906003)(3660700001)(2906002)(106356001)(229853002)(99286004)(26005)(186003)(6116002)(2501003)(5250100002)(53546011)(6506007)(25786009)(7696005)(3846002)(93886005)(110136005)(76176011)(3280700002)(6436002)(5660300001)(8936002)(478600001)(102836004)(14454004)(53936002)(6246003)(55016002)(86362001)(9686003)(33656002)(5890100001)(97736004)(74316002)(4326008)(305945005)(81156014)(7736002)(81166006)(68736007)(105586002)(8676002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3650; H:AM0PR0402MB3842.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dcbb3621-6557-4622-3bff-08d580769ae9 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:AM0PR0402MB3650; x-ms-traffictypediagnostic: AM0PR0402MB3650: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231220)(944501243)(52105095)(6055026)(6041288)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:AM0PR0402MB3650; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0402MB3650; x-forefront-prvs: 05991796DF received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: YUIoxS5h/qm0e3t7EKJQKb9cy4XhJBSUxLy5ZyPVUqJnBR0aLxi/YDXRKAVmLPASS+f+kWB6rDITvqUJU0kPV+oNqt89PFgh+zdPHsNI2Xz3p0rrWC8fSdwD6ocdMqI6UFdWgvOwccHwEbpMtnD0qv2woxcDC4QRv8X+fwJckHQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dcbb3621-6557-4622-3bff-08d580769ae9 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2018 19:48:43.5484 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3650 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 19:48:47 -0000 On 3/2/2018 4:53 AM, Trahe, Fiona wrote:=0A= >=0A= >> On 3/1/2018 9:41 AM, Trahe, Fiona wrote:=0A= >>> Hi Shally=0A= >>>=0A= >>> //snip//=0A= >>>> [Shally] This looks better to me. So it mean app would always call xfo= rm_init() for stateless and attach=0A= >> an=0A= >>>> updated priv_xform to ops (depending upon if there's shareable or not)= . So it does not need to have=0A= >>>> NULL pointer on priv_xform. right?=0A= >>>>=0A= >>> [Fiona] yes. The PMD must return a valid priv_xform pointer.=0A= >> [Ahmed] What I understood is that the xform_init will be called once=0A= >> initially. if the @flag returned is NONE_SHAREABLE then the application= =0A= >> must not attach two inflight ops to the same @priv_xform? Otherwise the= =0A= >> application can attach many ops in flight to the @priv_xform?=0A= > [Fiona Yes. App calls the xform_init() once on a device where it plans to= send stateless ops.=0A= > If PMD returns shareable, then it doesn't need to call again and can atta= ch this to every stateless op going to that device.=0A= > If PMD returns SINGLE_OP then it must call xform_init() before every othe= r =0A= > stateless op it wants to have inflight simultaneously. This does not mean= it must be called before every op, =0A= > but probably will set up a batch of priv_xforms - it can reuse each priv= _xform once the op finishes with it.=0A= [Ahmed] @Shally Can this complexity of managing the NONE_SHAREABLE mode=0A= be pushed into the PMD? A flexible stockpile can be kept and maintained=0A= by the PMD and it can be increased or decreased based on=0A= low-water/high-water thresholds=0A= =0A=