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 BAE26A2F67 for ; Fri, 4 Oct 2019 12:29:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DB7F1C1EA; Fri, 4 Oct 2019 12:29:58 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20082.outbound.protection.outlook.com [40.107.2.82]) by dpdk.org (Postfix) with ESMTP id 2A5B91C1E9 for ; Fri, 4 Oct 2019 12:29:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q2qPTdooVSdKpDewyc7qx+2uxi9PWlBZ8je8qb8HF3Z72vQx8tRocBa45IkJYsww8EfVbfBL4arrlgoeOPI9b+EZlIavsrN9qTVZPihCFfwom5g7S8r73BjD1eSimHGB4dDyZ69K9vx0AqBHqtv4Hjdut/OB4O/+8dI148p6Z6vK727//l+wUwXzO/gBdtjCfIiqlktjswPS7D101uOQASScucth5Sdk83tqnlM9Jx6/AYOqmUAMNBpu/Ym/yqj4Cj5RErXckAH+UVfegZdDCbZZ5mgiK8ZK22ZLrlZUxSn7rdwWe2EumlMfFFdMGzTbKHe2kEfGaubuVHXUlENlvA== 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=04eyJPpI5EiLb/FpZkHtTrA7PdvLrECJddcSkFiTKmw=; b=gZPkqHSuvckuYH2lqBpMJxFQRdp4ko8kRJjicWZpqT+H9UZRCc2F0aaZ+yme4ClfpmkImb+r2uEfOpzNJnnhC3lD65D1Sa8auNky/FgVuJEQC45b5rTN2BhEU2BhWUJXTQm12ZKimI0eKm4erQMLpOQYnRjoZncA5lGJuEADVMlOZUR3thXQEE4b4zTiXwgEvzNBQCgnoIdeLeKmtZFsYNOJ5ZSa5/DqP01h3Ua6lYOxqDA104AFuj0xVBgXDTqm8uGmvI4PXv/0q14Ds/JzqVkRCE+yn0LsyTmOtp6bQ8FU4R5nGHRZVdv6fyMPbcs2s9nmkuqq5uFF3XSwsmML2Q== 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=04eyJPpI5EiLb/FpZkHtTrA7PdvLrECJddcSkFiTKmw=; b=sOMVvBwSyT8RgigI6/ZNsG0KCrO128/mV8VHcHcSs/Cqa3qYLRe3sG2glNDChm8XdjpgZZWQjdUYzk6AgVqnaMOuLhSkqddcX6YEo94YCyyrndLhNm9oGeBWhQsARUDkh1UpsioUkrEfiFHcMIviD8QzHL5YrEkO6pFkebsk4Dg= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6413.eurprd04.prod.outlook.com (20.179.232.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.17; Fri, 4 Oct 2019 10:29:56 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee%5]) with mapi id 15.20.2305.023; Fri, 4 Oct 2019 10:29:56 +0000 From: Akhil Goyal To: Nagadheeraj Rottela , "pablo.de.lara.guarch@intel.com" CC: Srikanth Jampala , "dev@dpdk.org" Thread-Topic: [PATCH v7 0/8] add Nitrox crypto device support Thread-Index: AQHVeCM70rl6S4FSQ0GMxh2rWlGZxKdKTNOg Date: Fri, 4 Oct 2019 10:29:55 +0000 Message-ID: References: <20190716091016.4788-1-rnagadheeraj@marvell.com> <20191001064048.5624-1-rnagadheeraj@marvell.com> In-Reply-To: <20191001064048.5624-1-rnagadheeraj@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 35f02faf-a5a8-46e2-4cbb-08d748b5cce9 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1PR04MB6413: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 018093A9B5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(396003)(136003)(39860400002)(376002)(199004)(189003)(76176011)(256004)(14444005)(186003)(6116002)(25786009)(316002)(110136005)(2501003)(86362001)(26005)(54906003)(476003)(3846002)(11346002)(55016002)(446003)(2906002)(478600001)(7696005)(66446008)(33656002)(6436002)(9686003)(4326008)(66066001)(66946007)(66476007)(66556008)(229853002)(102836004)(99286004)(52536014)(8676002)(81156014)(6506007)(76116006)(64756008)(6246003)(81166006)(5660300002)(71190400001)(14454004)(486006)(44832011)(71200400001)(8936002)(7736002)(74316002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6413; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S/AAFFaawu2hh3RZ2CvG3DxwZ9awpBNJzYaN4HFc5ZYKKdHUoU+BZ4a1NW8RWV3jClVdw2nwrR6+PPCtsVkOLDhYxkAMLKcXhO8RO7n+bVfOpoEoWyqDS+CY6aZM4fj+gem9cot3d/21c/nxkK3FDVit8/UgVyRv7EDywkQdt5NlQsi2d8V/TXtc1n6OgwLq9Q1NeyowXygvBdZDRqLQcG+B+c16y8rwLGM6GVLDInDPYiZVrV4lw4DNVBkN4AUjoOEdyxJ9jzIJFeHNvXKmd3Gc+c/fRl4s2cX+5s/Mv6KT8IAkG1H6LMvCUvXDjkgfOZ41T3pEza+JethU70+JQurggnRjbcNprDggFFgaMmfSWfmC/y+RLWSiS39PNMFp18AL9yLu2JMCjrcGNUf7Vp2032FbktUfaq4QQ+Wo6v0= 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-Network-Message-Id: 35f02faf-a5a8-46e2-4cbb-08d748b5cce9 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2019 10:29:55.9067 (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: 1WU7aqc+2gKd0oeqCQ3uzgQv/OSIgv28foURzwCKaqB9f9zAy51DnDWDxnnmnoCOrE7dia5eF+1fAq6/qfMWHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6413 Subject: Re: [dpdk-dev] [PATCH v7 0/8] add Nitrox crypto device support 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" >=20 > Add the Nitrox PMD to support Nitrox crypto device. > --- > v7: > * Removed rte_wmb() and rte_rmb() usage in all places. > * Added rte_smp_wmb() before pending count update in enqueue > operation and rte_smp_rmb() before reading softreq from > pending queue. > * Added rte_io_wmb() before the ring doorbell to ensure all the DMA > buffers & descriptors stores are completed. >=20 > v6: > * Updated Nitrox cryptodev html guide. > * Updated release notes 19.11. >=20 > v5: > * Combined related changes together and merged into single patch. > * Defined macros for PCI vendor and device ids. > * Checking return value of nitrox_sym_pmd_destroy() in pci remove. > * Removed wrapper macro over RTE_CRYPTODEV_NAME_MAX_LEN. > * Added cryptodev feature flags in the code and documentation in > a patch where they are supported. > * Added capabilities in the patch where they are supported. > * Implemented nitrox_sym_dev_config() and validating the number > of queue pairs requested in the config. > * Used RTE_SET_USED() in place of __rte_unused and added comments > in empty functions. > * Removed empty lines which are not required. >=20 > v4: > * Added wmb between pending_count store and sr pointer store in enqueue > operation. This is required to safely read sr in dequeue operation. >=20 > v3: > * Add SHA224 and SHA256 HMAC algorithms >=20 > v2: > * Fix compilation error on AARCH64. > * Fix checkpatch warning "UNNECESSARY_ELSE: else is not generally > useful after a break or return". >=20 > Nagadheeraj Rottela (8): > crypto/nitrox: add Nitrox PMD library > crypto/nitrox: create Nitrox symmetric cryptodev > crypto/nitrox: add software queue management functionality > crypto/nitrox: add hardware queue management functionality > crypto/nitrox: add session management operations > crypto/nitrox: add burst enqueue and dequeue operations > crypto/nitrox: add cipher auth crypto chain processing > test/crypto: add tests for Nitrox PMD >=20 > MAINTAINERS | 7 + > app/test/test_cryptodev.c | 52 ++ > app/test/test_cryptodev.h | 1 + > app/test/test_cryptodev_aes_test_vectors.h | 48 +- > app/test/test_cryptodev_blockcipher.c | 9 +- > app/test/test_cryptodev_blockcipher.h | 1 + > config/common_base | 5 + > doc/guides/cryptodevs/features/nitrox.ini | 40 ++ > doc/guides/cryptodevs/index.rst | 1 + > doc/guides/cryptodevs/nitrox.rst | 51 ++ > doc/guides/rel_notes/release_19_11.rst | 5 + > drivers/crypto/Makefile | 1 + > drivers/crypto/meson.build | 4 +- > drivers/crypto/nitrox/Makefile | 34 ++ > drivers/crypto/nitrox/meson.build | 19 + > drivers/crypto/nitrox/nitrox_csr.h | 40 ++ > drivers/crypto/nitrox/nitrox_device.c | 124 ++++ > drivers/crypto/nitrox/nitrox_device.h | 22 + > drivers/crypto/nitrox/nitrox_hal.c | 236 ++++++++ > drivers/crypto/nitrox/nitrox_hal.h | 165 +++++ > drivers/crypto/nitrox/nitrox_logs.c | 14 + > drivers/crypto/nitrox/nitrox_logs.h | 15 + > drivers/crypto/nitrox/nitrox_qp.c | 115 ++++ > drivers/crypto/nitrox/nitrox_qp.h | 104 ++++ > drivers/crypto/nitrox/nitrox_sym.c | 728 +++++++++++++++++= ++++++ > drivers/crypto/nitrox/nitrox_sym.h | 13 + > drivers/crypto/nitrox/nitrox_sym_capabilities.c | 99 +++ > drivers/crypto/nitrox/nitrox_sym_capabilities.h | 12 + > drivers/crypto/nitrox/nitrox_sym_ctx.h | 84 +++ > drivers/crypto/nitrox/nitrox_sym_reqmgr.c | 635 +++++++++++++++++= +++ > drivers/crypto/nitrox/nitrox_sym_reqmgr.h | 23 + > drivers/crypto/nitrox/rte_pmd_nitrox_version.map | 3 + > mk/rte.app.mk | 1 + > 33 files changed, 2692 insertions(+), 19 deletions(-) > create mode 100644 doc/guides/cryptodevs/features/nitrox.ini > create mode 100644 doc/guides/cryptodevs/nitrox.rst > create mode 100644 drivers/crypto/nitrox/Makefile > create mode 100644 drivers/crypto/nitrox/meson.build > create mode 100644 drivers/crypto/nitrox/nitrox_csr.h > create mode 100644 drivers/crypto/nitrox/nitrox_device.c > create mode 100644 drivers/crypto/nitrox/nitrox_device.h > create mode 100644 drivers/crypto/nitrox/nitrox_hal.c > create mode 100644 drivers/crypto/nitrox/nitrox_hal.h > create mode 100644 drivers/crypto/nitrox/nitrox_logs.c > create mode 100644 drivers/crypto/nitrox/nitrox_logs.h > create mode 100644 drivers/crypto/nitrox/nitrox_qp.c > create mode 100644 drivers/crypto/nitrox/nitrox_qp.h > create mode 100644 drivers/crypto/nitrox/nitrox_sym.c > create mode 100644 drivers/crypto/nitrox/nitrox_sym.h > create mode 100644 drivers/crypto/nitrox/nitrox_sym_capabilities.c > create mode 100644 drivers/crypto/nitrox/nitrox_sym_capabilities.h > create mode 100644 drivers/crypto/nitrox/nitrox_sym_ctx.h > create mode 100644 drivers/crypto/nitrox/nitrox_sym_reqmgr.c > create mode 100644 drivers/crypto/nitrox/nitrox_sym_reqmgr.h > create mode 100644 drivers/crypto/nitrox/rte_pmd_nitrox_version.map >=20 > -- > 2.13.6 Series Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.