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 229FDA0548; Sun, 9 May 2021 18:05:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C5C6D40140; Sun, 9 May 2021 18:05:27 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2080.outbound.protection.outlook.com [40.107.223.80]) by mails.dpdk.org (Postfix) with ESMTP id 5C7194003E for ; Sun, 9 May 2021 18:05:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XWxhXoJm6AvMykfTnuUyoVL9BgXv0EcfvKfW4NDjV0Najy+CC9Pzll0HUO91OqR7Tn5c6OLTlnHsJeRbMUjx71dSfk2DZKb1QbWzIhCoGb7N5HWjZYAWhZTfo0IEdn9CSvvDRM21K0603V0HST4IrLLqbOESGtmdFAiav06dvlR4j9qVX/Muqgh3FBWiwd8Iku3LuwVPtB0hn6yJ7PM/HVZhwJra4/wlA7zWCLzXtKCEI/zRmpvdW7wDBEfok6x5tEHmBTNI0ZD6LpzVEmFI8XryYVQvGI7VLdUzokMSMqMF7ed0SllDUma8wGshwfu/cmkl+UbxCcf24V1eCRlyPA== 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=yK8h6OinHuiSloeW/Is0eBCEFFDcBv9+dbxsQ5IlX6o=; b=fZYNvnsbpRvwQfPejGwGkoRCBSuTzk0SIpv8NbjKNwwb0T9Eclw1nHqECqTBk8gQiNyfsUpOnxGPY4wy6rjQYen/RvUJWIXwq5ymvR6nfUMgisopXOfwIo0Yni45scW5yCbH9vybKZq5X5d9AqufGBd0G38pF8MfYMBt0DWfse3Yajh+2DJ2dk28KrLUiT7NvaiMqZZ6wo3SXTT5hR0LG3HR2AYLkI0NYDMhPDxz9cQ9p3XO3Ugylk8HrV1E3+TbIrF+VpiBSUqTJqXImZ4w+s8wtiyS7cuNr25HuzpM9tDj53XK+7GGQWz8PBLc/sNfQyYBzsWFUkjk6cdN/AoNYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net 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=yK8h6OinHuiSloeW/Is0eBCEFFDcBv9+dbxsQ5IlX6o=; b=tiQkL4e54xJDHs78znkdn/r8BV3chRc7/Kdnwr7Q/5Iv7E+p6hBhypAl+KL/k+drgkohtaUpOFwXyMfuqpHsAOg9R8fF4bIlCfepzTBjhuSTXOVG66RxZ1zH6VlEsitl0qiVG2pN7JqtxlS8uCVOJcY9dh1YmCa4BM9Tkf0kENjWbJJ88sUhV8Lvsdjwf9BUTZtsc3WMfsiTxrESYbzX6VwkoY0NorHw9BLAri3+yUtDDJT6LdoU7ILtCJZw/xLuomPBeA+3CwmQB4l0i2YNuqS6zOBsyUJM99P+YbAwRTSZfJg4WB9wzL2bj98msDAM5CEODxa/dPVx0334NYPwEA== Received: from CO2PR05CA0002.namprd05.prod.outlook.com (2603:10b6:102:2::12) by DM5PR12MB1194.namprd12.prod.outlook.com (2603:10b6:3:6e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Sun, 9 May 2021 16:05:25 +0000 Received: from CO1NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:102:2:cafe::8c) by CO2PR05CA0002.outlook.office365.com (2603:10b6:102:2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.9 via Frontend Transport; Sun, 9 May 2021 16:05:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; 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 CO1NAM11FT031.mail.protection.outlook.com (10.13.174.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Sun, 9 May 2021 16:05:23 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 9 May 2021 16:05:20 +0000 From: Matan Azrad To: CC: , , , "Thomas Monjalon" Date: Sun, 9 May 2021 19:04:53 +0300 Message-ID: <20210509160507.224644-1-matan@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210504210857.3398397-1-matan@nvidia.com> References: <20210504210857.3398397-1-matan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.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: cad56301-0373-490e-ec4d-08d913044078 X-MS-TrafficTypeDiagnostic: DM5PR12MB1194: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:773; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gp717tBQuhm5hxCHmlY5ZKrNbWZpLE+E4OPVZWMETCMf/VmCiyviBIISLDPGTovfBS1FoO1Bdte1MUJkh4HI+DG1YGBLBGwK8uZzgEw+MyX5VmiPIqCex1Pb/i0HpL3U+Vpgi6ShtSxT9wpG4rt/057/Eyz5JLt3rJdL6wMEJtvwj0ZOaKrnWxOG1YLNoEOkkxoF/UodFkis3FWcqZvF8pBFZtjNEQ71D/q0/zKu7Oe/6v7IbH8PR+M/pKb8aMsVL4OQpWvfmP9jYLbDat0nEdBw9FSdHGe8gDu5JQN+ChxkukQd7o3uJmtcpG5mGCffeVNvaAUjzoBZw9dAeD92NbTNf4tgnFPv0kf4oXfsA90HWqn6laJ5jcEHfDTVJzWgyhDROoustiU22WEbtebic77eM2QfaVIVHOTFGP1kydHcpB/vrzytZVYERmtbAtf0qRsc4GELRGGx3ravTYxPysP7AGW0G0rQkq7etuS63EITHVY7ZfikbW2lwy96DW6hOKBuIiqyLnHKwb7z8+veP4Px20BDUtySf5p7pPBK1p9hBBEfLfdk7lO2tgcRgktIp/4MS3qxhTzJCVpsnL9OT8iwijGzNDgumI2KO1MCeStSFAePW+VA5BbSlX5UUA2ywEDc9tskYowe+uHFJgZ7yRxEPMloz4pup9FF+S+u5/c= 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)(39860400002)(376002)(346002)(46966006)(36840700001)(356005)(86362001)(478600001)(186003)(70586007)(7636003)(82740400003)(5660300002)(1076003)(83380400001)(70206006)(4326008)(36906005)(8676002)(6286002)(8936002)(316002)(36860700001)(7696005)(55016002)(2616005)(26005)(36756003)(426003)(82310400003)(6916009)(2906002)(16526019)(54906003)(336012)(6666004)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2021 16:05:23.1030 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cad56301-0373-490e-ec4d-08d913044078 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: CO1NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1194 Subject: [dpdk-dev] [PATCH v4 00/14] 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. Shiri Kuzin (9): 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 crypto/mlx5: set feature flags and capabilities 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 + doc/guides/cryptodevs/features/mlx5.ini | 37 + doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/mlx5.rst | 152 ++++ doc/guides/rel_notes/release_21_05.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 | 1093 +++++++++++++++++++++++ drivers/crypto/mlx5/mlx5_crypto.h | 92 ++ drivers/crypto/mlx5/mlx5_crypto_dek.c | 136 +++ drivers/crypto/mlx5/mlx5_crypto_utils.h | 19 + drivers/crypto/mlx5/version.map | 3 + 15 files changed, 1596 insertions(+), 10 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.25.1