From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C07AA04B6; Mon, 12 Oct 2020 18:15:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12BF11D925; Mon, 12 Oct 2020 18:15:42 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71]) by dpdk.org (Postfix) with ESMTP id 58BFA1D917 for ; Mon, 12 Oct 2020 18:15:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n24kAZBC4HwPeb8CAi2eC8L8oAltsQVGlb0L/alNgEAh+5O7wuqSkMO1mqkBl5oxd6YmreVbAsu5AmRYDq2u54vjo3JyW4NbQ4U28JER0wHLt/ABXeUf6icNGFRqdQByXj20jPM4RToeUW9pNGtpeQEgf1cJoozDF2Rkw0r6+np+2nE2sNdI+PviM1RKTCeeylF87WG7xSJV6On+KMIpwX7/o//6jxZjodnSKcii/RQtmP+9P942lb/s/1g77WN7uxS2u1orPhtZimiu2r+qX8+T7NkQ2Zf055o1hLGXOrErDte65zHLHTK5GxFB1RS3dKjAtcEZqBMXSOnGg881vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fhWuV7l6iadpVVJ0XaBcAgJeVxLr33hGUJhKYT+huB8=; b=bjYoD4X4KQws3Tux5TJCM2kxHIPr+0rF7R+v5GhwbA9qCZnZ65UFTb4THFkn2wYnqo5vzRzAGLjKx4NCaMhfujKADpWzCpAr0aoLnzM4HLKDFc1h6ZJAC+o9W6KWKG0BANsqR1KbKLQw/11qVmBwI2lKYEzs9OX2OHvIGvXIiQyUGYdSQ/nOvupTUx7o6+DdWzJiB4ZE8btWKQcVeDJoJ+YMc1GhzVacAw4uGDz257gZ5bV52Di9vJO6tIXKh1xYonlXcDjiXVs9Lg3hjHXZZn1s2MN21pb83tvn8x+MCzNnraOHtX2zkeSjJQhWFuhbgDLr19zV7CfeV4dPHOZeCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fhWuV7l6iadpVVJ0XaBcAgJeVxLr33hGUJhKYT+huB8=; b=C88M1MaZn2kWCBImlC2gdLPY1rdJyINF3Y2BAPU8/IAeW2huQjq+SlOdWb1AXtm8KMWrasUBATl8uTqV9COqmv+CVMrp1LxjiiBmxEtHBuJ1CaJVO4n2Qa5aXcCpdVk8wJbcU9SQJZKbcRGw3TQDVRCwoitOwebQG26WmZ/B7Tk= Received: from VI1PR04MB3168.eurprd04.prod.outlook.com (2603:10a6:802:6::10) by VI1PR0402MB3565.eurprd04.prod.outlook.com (2603:10a6:803:12::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.29; Mon, 12 Oct 2020 16:15:37 +0000 Received: from VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::9513:3b55:931f:216e]) by VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::9513:3b55:931f:216e%4]) with mapi id 15.20.3455.030; Mon, 12 Oct 2020 16:15:37 +0000 From: Akhil Goyal To: Fan Zhang , "dev@dpdk.org" CC: "konstantin.ananyev@intel.com" Thread-Topic: [dpdk-dev v13 0/4] cryptodev: add raw data-path APIs Thread-Index: AQHWn2br43kCnpxXyEyxg35jeH+4/amUJliQ Date: Mon, 12 Oct 2020 16:15:36 +0000 Message-ID: References: <20201011003252.54558-1-roy.fan.zhang@intel.com> <20201011003854.54947-1-roy.fan.zhang@intel.com> In-Reply-To: <20201011003854.54947-1-roy.fan.zhang@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [122.180.231.103] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 9a6a1d53-06d9-4cd9-3fb2-08d86eca0e2a x-ms-traffictypediagnostic: VI1PR0402MB3565: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ovlfJ15frwTZGckdyFcJyiX3Pc6h4NapxmnWYuF/GmocgLOmGcKh//wc5W6GVl5jHzBl1hOuT6bHVuMZ31ENY9/4xPtFxI5Ou99B5/gbF5iUMyuV4l1KJGcvA5DttLbs60j2WCUj1ZDIMXLtp7VAwGuEMBKnYTfwB15rutDhqhDgNZ2NmnjsnDPsgrfqHtLjWtbOBIO0PoEao9qI2R2MQz5HQ5KzRanDdG5FGuq4OffKOvwXDURL0LGbGww5bg8b6vGPncDVadqnwpJpusWN6e7cbWqjzoD7f6SwXJDstZm9rnoF55atKm3AqT/SafJBaYpRH+V1ZN7Hc7kvP8TrVA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3168.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(366004)(376002)(396003)(346002)(55016002)(2906002)(186003)(71200400001)(8676002)(110136005)(6506007)(86362001)(9686003)(478600001)(44832011)(316002)(52536014)(8936002)(4326008)(33656002)(5660300002)(7696005)(66446008)(76116006)(64756008)(66556008)(66946007)(66476007)(83380400001)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 6i5+cgAN1nEMAG9RJX/umRxphsKcJbmHU90ClScWtKTAOUtx3m6meJ918mTa77tBO0EdTScyWAt2JYowgfIX2uqCTFEtVcoqLkDRCaLejGDZxBdn9H/vMURzfm/B6Gd8a+n8OCzW4QaICWh4VpEIjvv50JgDnWfYesem5vQjf5l8Ob9fzDHese1at2ygdB0Nf0G6az8PLL1nTQJTpot1f+L7DYHwOGTl3Nmv7/X5A6UBcA47pV147ymkWIQFa2nTJc0s3sv0kvqqylz0X5t1SfTHoOz2GpzDOdr9HSuDDTNojzHiT9oJuvlVfhk424G6C1W4MYBgPKxiRDZ4qoybftHxafvtUXMrqpJz3G2yZfBwaUNUqw50inMYipjb/bpezQF6CufzjURlzUDlkOKCN8+R615BssgT5xNGzfIGoC+UB27+HGrQ3Jo5qfPoCMN1o44TUDjwaB8s7HVKOcuv59hFWWnTKEIZWIV0K0VVTxYV1P/6GYSphv2AXWGyGCv42SeOri8fLDguIsczpUmtlY8RvGcgfcNs/MCOBc/1IAxZZryGHP1U7YXRxcdABvMXQeulYibxzv/EXMghblRcZB6sdtW86Ond1UQz0tx3sdfDjLRPuGAKzGnKXrCJ4DsVMYe5T5fd2h0Y6r7enSJ7bw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3168.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a6a1d53-06d9-4cd9-3fb2-08d86eca0e2a X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2020 16:15:37.0355 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7YO7NyoibhTQJjDjQFO3/C+LSfJeQhnlFsXPWGLyzuckZ2b//LoATfvuXZG0Pqixyr16tcfo+j9al/uAXOsuQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3565 Subject: Re: [dpdk-dev] [dpdk-dev v13 0/4] cryptodev: add raw data-path APIs 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" > Subject: [dpdk-dev v13 0/4] cryptodev: add raw data-path APIs >=20 > The Crypto Raw data-path APIs are a set of APIs designed to enable extern= al > libraries/applications to leverage the cryptographic processing provided = by > DPDK crypto PMDs through the cryptodev API but in a manner that is not > dependent on native DPDK data structures (eg. rte_mbuf, rte_crypto_op, ..= . etc) > in their data-path implementation. >=20 > The raw data-path APIs have the following advantages: > - External data structure friendly design. The new APIs uses the operatio= n > descriptor ``struct rte_crypto_sym_vec`` that supports raw data pointer= and > IOVA addresses as input. Moreover, the APIs does not require the user t= o > allocate the descriptor from mempool, nor requiring mbufs to describe i= nput > data's virtual and IOVA addresses. All these features made the translat= ion > from user's own data structure into the descriptor easier and more effi= cient. > - Flexible enqueue and dequeue operation. The raw data-path APIs gives th= e > user more control to the enqueue and dequeue operations, including the > capability of precious enqueue/dequeue count, abandoning enqueue or > dequeue > at any time, and operation status translation and set on the fly. >=20 > v13: > - Fixed a typo. >=20 > v12: > - Fixed and updated documentation. > - Fixed typo. >=20 > v11: > - Rebased on top of latest master. > - API changed followed by the discussion results. > - Fixed a few grammar error thanks to Akhil. > - Reverted attach session API changes. > - Fixed QAT driver bugs. >=20 > v10: > - Changed rte_crypto_sym_vec structure to support both sync cpu_crypto an= d > async raw data-path API. > - Changed documentation. > - Changed API names. > - Changed the way data-path context is initialized. > - Added new API to attach session or xform to existing context. > - Changed QAT PMD accordingly with new APIs. > - Changed unit test to use the device feature flag for the raw API tests. >=20 > v9: > - Changed return types of submit_done() and dequeue_done() APIs. > - Added release note update. >=20 > v8: > - Updated following by comments. > - Fixed a few bugs. > - Fixed ARM build error. > - Updated the unit test covering all tests. >=20 > v7: > - Fixed a few typos. > - Fixed length calculation bugs. >=20 > v6: > - Rebased on top of DPDK 20.08. > - Changed to service ctx and added single job submit/dequeue. >=20 > v5: > - Changed to use rte_crypto_sym_vec as input. > - Changed to use public APIs instead of use function pointer. >=20 > v4: > - Added missed patch. >=20 > v3: > - Instead of QAT only API, moved the API to cryptodev. > - Added cryptodev feature flags. >=20 > v2: > - Used a structure to simplify parameters. > - Added unit tests. > - Added documentation. Added Konstantin's ACK on 1/4 patch. Fixed a couple of compilation issues in documentation. Fixed a couple of typos in comments and patch description. Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.