From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 135A5C07E96 for ; Thu, 8 Jul 2021 15:26:13 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 96D7A6142B for ; Thu, 8 Jul 2021 15:26:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96D7A6142B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76AEC40696; Thu, 8 Jul 2021 17:26:11 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2067.outbound.protection.outlook.com [40.107.243.67]) by mails.dpdk.org (Postfix) with ESMTP id 811434014F for ; Thu, 8 Jul 2021 17:26:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hqiEvySJwEfOTTo0LhPM72QedPnGKzPlStOmoc4qF5BklZ/GnkALSQSTdrSB82u29MmyaQz7uN68UsWdGY/wtv/ICmzooyktU3Imyy95I/SDU9g2kCPiXfyPvpHQSjPbSksBFUu1e8qH3HDUoRks8YysnSRj6c1k/dTc2aIEAesMZAfeY4UD8MZhMaFaleemQT6QWDk4tidsOD4KNDa/RE2Sp61cbEfCE4lVOVpG1x1QbCX6QCXUa878ZGE+7ymQkv72JiqOu84yQzSgpiHI6mXyWa1CMb1kmdoslyJk+4YyfQikTcSKsiuSAxc6+Y3EaL0LWN51jUKvLCQHP/DcIw== 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=VGQck+lqNmNla6KLoDxmRw6FxGyjZng05ZJPG+fzNU0=; b=Ycz67YuNXQDbFV7xgM/4Fw5exdVdY1JSBpSuT4IDDw54bj/D/t+E1Wh5vuUEomii1uhMZVRJpQI2Lky1sGmDb3H4qUGwg2E1KFVXa3y3jksaYscFNOu5j6hgWj52R2wYRv+Ei23TC8yrqHPHkxToLFlfhVC81rYjkAjkjdmZS22W4UiFz283ffNtrOukyS2m9UqlzsFyyc4Rwrth3ZkRABUNFAUVI3cRA6CsVSunkM/B0T9t8e2+Whpi+znWytLHtvHUnLr4Bea4PuJb7WGc1vit4EbQJCOz6g5ATGo37GL4CXK2VoXfkf8AIn/l3QZ58UGIVXEc9ZFu1cIH3Uam1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VGQck+lqNmNla6KLoDxmRw6FxGyjZng05ZJPG+fzNU0=; b=H/uQkjcDTyLHqBlrc60LedFvVVkJGUPZxQSRl6SsFgA9tEWqaIqUF23owCh9xAqDkrTxWhfZdbMv5N6pUX7zZ+hgShxa8oF4E6ShCw+wCApWmAN3PRgoH/fdOF9/OxzRP/PTqG8VTtHMRCsSGCqqM0nrlZwkznwMo6zw0de6oTKVLLGlM8aIzglwattblkNGi6gDw9CR9xyBlzip+3GRQa3EUaZRQMSCLVl5lunwWHzKZz2uEDCPkdOGpTQuls/J9QR1v25a4NXFTpkB7KDGDPqmBZ6I98ncWiNnGmrBS/6fv+BaAX7h2ChDzUPYMiCfwFbPnFaIWokLXdD5u6TUtQ== Received: from CO2PR04CA0188.namprd04.prod.outlook.com (2603:10b6:104:5::18) by MWHPR12MB1901.namprd12.prod.outlook.com (2603:10b6:300:113::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Thu, 8 Jul 2021 15:26:06 +0000 Received: from CO1NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:104:5:cafe::5e) by CO2PR04CA0188.outlook.office365.com (2603:10b6:104:5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 15:26:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT008.mail.protection.outlook.com (10.13.175.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 15:26:06 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Jul 2021 15:26:04 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 8 Jul 2021 18:25:15 +0300 Message-ID: <20210708152530.25835-1-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210701132609.53727-1-shirik@nvidia.com> References: <20210701132609.53727-1-shirik@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ee97a11-ea92-4fad-eb45-08d94224b4bb X-MS-TrafficTypeDiagnostic: MWHPR12MB1901: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1122; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4vTHWbMhLQNM0A3BfWzNt7q/pfWuqTrYSIRpWD5s94jCmDMiO58IlpsIa4ZjYJW3s8Ppmz6jlRLr3CaCOmTHCzkhkXxD0Rp69DgjkQFZvhOlgXckBVp7XK3/HJain8WfRETqqZO1jYe5rVLzGQEPLhqacZOwHFxKROnlvoWqDWsmHB0fh+GBc1MzJ8vYYWHcuD0R6+AAhZUM2dQM97Tg4sHGrMFkcsxG3Yyp1eB3HVDObRrN86Yn0Ymj4h/FQT2ixXit3SRPOjuZn3oMV6h5+iatpLsWE6ieAKvFcGkF+b26tXjznTaIkwk9DOiPiKAy+iaSDTjK7k8qha4ZnscLnQ0WjRsdlMgvWYRsRMtBSziuqL5b92o8wf0sIJ4XHepELzSXi7hN1AqT1CMsQGhtCOZ+bY9x+OTmrbsCmCe4zvcl+Yi7E6pCbUcEclb7HrPTLvwWqJwXjsDHQ/PfHlLdcqdzOLe6MV6LUDBN99xDtxshvwmzKK7fD3LH5h4VHAsO7U2iq715zmNEZInC1brlDDO+PJGElBcJK3CcVi/j613viss/j7lTjAeT5/5Hb6AHzFYDlDIf1An7cEe1IzLzk9RYQYeLJ2I7MTZgF8d1jtlS0wtpdJwpZUhFVMZDKP0UbMfxz3w1AciuXo0Je8LiLYHDkIqnxWybOHxt4VaDb0NNEegk7L10t0rNCqxnxLHTueQ/ajDmyj3I3el6+ccBwQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(39860400002)(46966006)(36840700001)(8676002)(54906003)(4326008)(36860700001)(26005)(356005)(8936002)(6286002)(36906005)(47076005)(6666004)(86362001)(55016002)(316002)(5660300002)(6916009)(478600001)(82740400003)(36756003)(2906002)(2616005)(7636003)(426003)(83380400001)(16526019)(70206006)(1076003)(336012)(70586007)(186003)(7696005)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 15:26:06.7106 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ee97a11-ea92-4fad-eb45-08d94224b4bb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1901 Subject: [dpdk-dev] [PATCH v6 00/15] drivers: introduce mlx5 crypto PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Add a new PMD for Nvidia devices- crypto PMD. The crypto PMD will be supported on Nvidia ConnectX6. The crypto PMD will add the support of encryption and decryption using the AES-XTS symmetric algorithm. The crypto PMD requires rdma-core and uses mlx5 DevX. v2: Add data-path part. v3: Rebase. v4: - Rebase + Address the following Akhil comments: - Set HW feature flag in the capability patch. - Fix mp object release in session clear. - Some spelling and word missing in doc. - Squash data-unit adjustment to the session operations commit. - Wording: device argument -> devarg. v5: - Add mlx5 crypto tests into test library. - Update documentation according to Akhil comments. - Fix memory region management. - Fix multi segment case in data-path code. - Split documentation to the correct commits according to Akhil comments. - Rebase to new version. - Change license to Nvidia license. v6: - Rebase to new version. - Address David's comment and update log accordingly. - Update testing app commits as suggested by Akhil. Shiri Kuzin (10): drivers: introduce mlx5 crypto PMD crypto/mlx5: add DEK object management crypto/mlx5: add session operations crypto/mlx5: add basic operations crypto/mlx5: add queue pairs operations crypto/mlx5: add dev stop and start operations crypto/mlx5: add memory region management crypto/mlx5: create login object using DevX test/crypto: add mlx5 crypto driver test/crypto: add data-unit and wrapped vectors Suanming Mou (5): crypto/mlx5: add keytag devarg crypto/mlx5: add maximum segments devarg crypto/mlx5: add WQE set initialization crypto/mlx5: add enqueue and dequeue operations crypto/mlx5: add statistic get and reset operations MAINTAINERS | 4 + app/test/test_cryptodev.c | 7 + app/test/test_cryptodev.h | 3 +- app/test/test_cryptodev_aes_test_vectors.h | 1340 ++++++++++++++++++++ app/test/test_cryptodev_blockcipher.c | 10 +- app/test/test_cryptodev_blockcipher.h | 2 + doc/guides/cryptodevs/features/mlx5.ini | 37 + doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/mlx5.rst | 153 +++ doc/guides/rel_notes/release_21_08.rst | 5 + drivers/common/mlx5/mlx5_common.h | 1 + drivers/common/mlx5/mlx5_common_pci.c | 14 + drivers/common/mlx5/mlx5_common_pci.h | 21 +- drivers/crypto/meson.build | 1 + drivers/crypto/mlx5/meson.build | 27 + drivers/crypto/mlx5/mlx5_crypto.c | 1177 +++++++++++++++++ drivers/crypto/mlx5/mlx5_crypto.h | 91 ++ drivers/crypto/mlx5/mlx5_crypto_dek.c | 136 ++ drivers/crypto/mlx5/mlx5_crypto_utils.h | 19 + drivers/crypto/mlx5/version.map | 3 + 20 files changed, 3040 insertions(+), 12 deletions(-) create mode 100644 doc/guides/cryptodevs/features/mlx5.ini create mode 100644 doc/guides/cryptodevs/mlx5.rst create mode 100644 drivers/crypto/mlx5/meson.build create mode 100644 drivers/crypto/mlx5/mlx5_crypto.c create mode 100644 drivers/crypto/mlx5/mlx5_crypto.h create mode 100644 drivers/crypto/mlx5/mlx5_crypto_dek.c create mode 100644 drivers/crypto/mlx5/mlx5_crypto_utils.h create mode 100644 drivers/crypto/mlx5/version.map -- 2.27.0