From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 265C1A0A0C; Thu, 15 Jul 2021 17:09:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA61B4014D; Thu, 15 Jul 2021 17:09:04 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2043.outbound.protection.outlook.com [40.107.237.43]) by mails.dpdk.org (Postfix) with ESMTP id A54EE40143 for ; Thu, 15 Jul 2021 17:09:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L79vAondzn4DakuOJezakx+rfPIJvSm1j3E2KbtxF1jXy1HIGie2WbejhgI0bbRW8B+VrMSggLkSdvZi0K6/u5KnSaTW/ZhOT0vJWFuBSTkG/HYe+Obpy3vQ4NFt+ZZk+irBki5UY8ygw+KO7dawdxUxJ+TYEaMAKORAy2rugxvvSV1bMShYql8Nn+NDztV1gA9NW7MPxfw9LtZkqyXjVCyqPNefMxoiS5Aj5Dz/nO/2UC4Kkd/wP6aGXky8gqb9VcoT08aXvJmqMzRpdrTAJBqA0rvaDMjjRK2Cd0uWLaTKzmJpPvdcssLGZO4tFQXZBFLhZ4uTXq8WOBBYoUzPSA== 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=AORyVoB6QD3DIrGC9hFyZVE9SFKNW4DV0OkEcAkLGWU=; b=VS2TB7KhWiPcuJQn7uR0jx1yK9Khps/8xVVGaYx2nK+YwszaHa787mF3VsMiWnVCYHAkVwn1670TbpAj4IqUudtmhHrIeGGtk0zPcicYzIrC7uP3x7pguBWK83kfrXB+nxJkXN8EvlLqEP943rLD+8PAyRuUArZ/JG1jyRzIKtAYu0ILllZ+nsOqad2YvTvrZZQFQeN3vviHzbQCDeDlToWZX07i37aCaw4X80WKLwpRXJyJolIkGNbhiVFAYfRph3JWVGLuDmUJZ1Sb5klS3jMFe1rVhl4dF6X63NuOMFUyyro4vg3SUkW/P/U0NHFCKWoCtqOmUypWzgiaFn/6PA== 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=quarantine 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=AORyVoB6QD3DIrGC9hFyZVE9SFKNW4DV0OkEcAkLGWU=; b=OD6hu7WB/NffZh9WDWpbgr1CJoYjrb2LVrurbGxl6b3KV5kF4LSCAjODbnlcwz89pL7TBe259ul9mCbb4i74MxVSjEaVx2IKx9AHje7sEJVn1N1FIL0CDvHrNaPxMP7/nkBG8dV67yRRoRrFdYS+t6zkal72dmI5cygJgm8hZJy8o2so21hpgtl2NgQM9liV4bWhw6Ac25nFKWGkceVuNlW0JbVQ0o4flE/GXqKlK04+vz+3REnVHxhcesh3nMy77Bnh7KR+gY/eWc0EdG4zGHf+ac/DKGqNnkHjwepKVSGu/Cbzium+22yPstDTRE3sY1bpPzvTpSfOB/DGVJUTuQ== Received: from MWHPR20CA0014.namprd20.prod.outlook.com (2603:10b6:300:13d::24) by CH2PR12MB4135.namprd12.prod.outlook.com (2603:10b6:610:7c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Thu, 15 Jul 2021 15:09:01 +0000 Received: from CO1NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:300:13d:cafe::ca) by MWHPR20CA0014.outlook.office365.com (2603:10b6:300:13d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 15:09:01 +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 CO1NAM11FT066.mail.protection.outlook.com (10.13.175.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 15:09:01 +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, 15 Jul 2021 15:08:59 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 18:08:01 +0300 Message-ID: <20210715150817.51485-1-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210708152530.25835-1-shirik@nvidia.com> References: <20210708152530.25835-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: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 53d9e529-4381-4f17-0d08-08d947a27a65 X-MS-TrafficTypeDiagnostic: CH2PR12MB4135: 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: gDflwqea48DYLGVyjL+pOqhukih7QB1ujtPk07Bzr8jmzoOgIJmb/ZPnBuXSUsCh8jikW3BG/QgsrYyJydSMoRBtpM8PPRgox7ZYbZDF3TTQ1ODBx0f/dvlLQxnTT079pCLqk2c5TayuP+ER11Re4juU8D2XMcq+0VTBlpS1jxvarC0YZ6svtMkE2CYkPofwpd4dG6sW0eDB453vg7xv0l5qRl3DEKYHs8jIfd/8X3ZWRgQ2JS613aE5hK4u8lXJmxh1kaOky5vvl7QtB4iCrZe6jZBPGERg8ff4jdWJPdTtHc1UqQO5o2uIOjOHiyeXChWlXYcRDRmf0p/UQSwD/r1sMZA7hwVa6NN2U2L8wQZxC2Qi9onjo7nWb2zj8l1pXUWs38/GxBtIYSSvArZ7q6ni/aQWaYr2BSOdwM3nMXwUsSho6/sdMPbSmy/7Xhts8mjhHlirAI2G9YKeWUPi5MBrGrNl1IBS1qRRXceNpfD4aWVLfyduauukXW483kiRyb5FLEGg4F9Nl5UMxRfIYfns9wjqn0iT6ZDJYBfYf8IknIMXE5FQPtQw9YeLd+clTjL2fti0teMSMIuTTbOcJBVBuPnv+32JLDTq4zfD/kQ6hL/xN+llSIX3XowLJaRVImWaESa6Bwcqy50/zR8Hh7cd/wHJPhE5YY0uLElBnvJvC6HvBvVgbv1dvvwIoKuqF24pc+iC01avUA9w+NUxIWVz2AkwiMMYZ7WqjV4nKls= 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)(396003)(136003)(346002)(376002)(39860400002)(36840700001)(46966006)(426003)(86362001)(2906002)(26005)(36906005)(8936002)(36756003)(34020700004)(316002)(55016002)(36860700001)(4326008)(7696005)(1076003)(54906003)(6666004)(82740400003)(478600001)(6286002)(82310400003)(336012)(8676002)(16526019)(70206006)(5660300002)(47076005)(2616005)(186003)(7636003)(70586007)(6916009)(356005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 15:09:01.1663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53d9e529-4381-4f17-0d08-08d947a27a65 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: CO1NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4135 Subject: [dpdk-dev] [PATCH v7 00/16] 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. v7: - Rebase to new version. - Add scatter gather and OOP test cases. Shiri Kuzin (11): 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 test/crypto: add AES-XTS multi segment OOP tests 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 | 4 +- app/test/test_cryptodev_aes_test_vectors.h | 1403 +++++++++++++++++++- 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 | 161 +++ drivers/crypto/mlx5/mlx5_crypto_utils.h | 19 + drivers/crypto/mlx5/version.map | 3 + 20 files changed, 3127 insertions(+), 14 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