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 C13AEA0547; Thu, 29 Apr 2021 17:44:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC53241216; Thu, 29 Apr 2021 17:44:26 +0200 (CEST) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760074.outbound.protection.outlook.com [40.107.76.74]) by mails.dpdk.org (Postfix) with ESMTP id 09381410DD for ; Thu, 29 Apr 2021 17:44:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NDKZvqptyjwlicpnyshGDtUaTMTbzJ+zYvh7nGxWt9sZxjj5D3PzPIkrA2FGzPuzQW5tkNxG+2SpTM017c8cc63VxHdJ6HtV0TnHz3RBygAgOFjzGR8n4+gl03mdyPiPwuinB0z6G7zvCQVkvxB/Udf6qtXiu4JprFwWkYfaL5cyTCZ2pqV7V5ljmgJUeq1561Z3liXV9ViWCnWoS7hOsSQpOkZaAJhEh8k5RtNNeA7hV9eB5Ae4xLx+q3yusy2hwsGqw/o6wEF879+IJd1v9xN8a4Hj4C8OXguO4MZdlMBsbi7f43ejE1N7iSpddHoX3/ARqfmMqG/23VhvbEjiEA== 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=2IC35COEWiht1w3aOWEpVd7RI3Qj+ZhA4eeUViVxp7Q=; b=jrECpUYZzdY1LyeXWgiiaX1kIaKU6RIqx7/H74LRaS+YIZJvPU6HD5/oK7L2s347RGK5JZuJCv8ngNiyCMlIf6WKvWOaN1P7W10KTMafmNoX+Dh0hDHWFHaSrDoXOAaIjDSDndbMN8LL3QTkAarxhq2AcUfryfwDXsgOmcpSti76970W0hLZj5o1oS2oYWIGoHMw3/dPfzFARAKFsC70TJYQyfQzd+uGoRMqadR0/ShJKEIvKfRarh54BVK2f0VQJ10Gjcg5ooYe5fd3VptgTBC9IJ2asCT0kZN3hLB5x4U6yA6v8XAwc/uHHPLBw8mMrTNx69fcX+mVWPDn9oreGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=marvell.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=2IC35COEWiht1w3aOWEpVd7RI3Qj+ZhA4eeUViVxp7Q=; b=OHbpjgnSDWS6NpxVOtNvIS64MSpt0L2BYI8ZYv+7drqhN+0SPjm+Hm5i0oILETl9vxRD7ZdMaeF2p0pnIpZ8vgk93Vf0oqb0S7PZciiTsrFR7pS5Si/H/vA66bggSyR6OPS8Yd+GWG2HJn4QSL9selmRehlgyPC7o3xngN7LX1UizjcDrTBYmfxVuRX8cUs/tuh9PGGnWioI6Z3n9dU3lTFtuO9z2hujFderxodJ2nEz+0nxRJbMyyqZwhxLAMQeHVeU3EHmdrYN8xRmF0+90ajAgOggRJKaOFpDEPoCj0K24FNTmbOZGrRdvT9lOiJqhp7tzG7TtgNBC72Lritacw== Received: from DM5PR07CA0094.namprd07.prod.outlook.com (2603:10b6:4:ae::23) by BN6PR1201MB0034.namprd12.prod.outlook.com (2603:10b6:405:53::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.27; Thu, 29 Apr 2021 15:44:19 +0000 Received: from DM6NAM11FT015.eop-nam11.prod.protection.outlook.com (2603:10b6:4:ae:cafe::d7) by DM5PR07CA0094.outlook.office365.com (2603:10b6:4:ae::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25 via Frontend Transport; Thu, 29 Apr 2021 15:44:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; marvell.com; dkim=none (message not signed) header.d=none;marvell.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 DM6NAM11FT015.mail.protection.outlook.com (10.13.172.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4087.32 via Frontend Transport; Thu, 29 Apr 2021 15:44:19 +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; Thu, 29 Apr 2021 15:43:52 +0000 From: Matan Azrad To: CC: , , Date: Thu, 29 Apr 2021 18:43:19 +0300 Message-ID: <20210429154335.2820028-1-matan@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210408204849.9543-1-shirik@nvidia.com> References: <20210408204849.9543-1-shirik@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f06b96b4-c839-4cf3-3fba-08d90b25a71d X-MS-TrafficTypeDiagnostic: BN6PR1201MB0034: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8ZzJNJaysHYy6SUGqvV/7zRJj2Q37qIoa+gOn+2DCjhP5ex4+HvraYwv4hCjdVyFzy3frJhi1NC75Z/azsesfPXUv0LgLXmxXZ3iO/CXFSeGJCluwS3Jbedv2Lr92kMC8bF2H/DI15XEJL8yJzazf9VDz+3NFrMS5DG3LlJm837E9OMdUWnGdJrLgvCdHKkhqiPE0M26qe0sewDYN9r8nz/j1xRgRn3Xmm2cC4yWh47kBm8vt3+E+RTo79buMjgmeloh5UiD7s6ZKnY1hSFeC0oU6/eNZKkROUn+2UpL392aHS8RM7bBYXiQ+CAnEOoedTuOyQi2TjE5/3rKSy1NVxJJ1V1+iQm0MB91UKGdrouJr4wFkPOBV9XQTku0HJf0t8G2IAJ4XnsyD46Pq35tq+of4PAi82Pcn0QM0bfZHUGOxTb6l7wFQNXpvsW1d7/NvuYVJeUAWN7CbUDAU2SPgeyJ4JRCQhcw3PEIAXk5TtGF5gH/17al3i9IxbPwR5XbubbLL6HPvUgwhdvn8p6bxXAPxCA6Gl2fntNlZYEUrio7cfESqzbA4qWMRr034UCtSpjSOaN+aNyv9Q8eppnAtnCdGws2nvgPMKPjWRwgZlht4dvj2bycucYGj/QPbTecd1+f5PF1FX++Flvdmehtdw== 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)(376002)(346002)(39860400002)(396003)(136003)(46966006)(36840700001)(316002)(6916009)(107886003)(16526019)(55016002)(4326008)(83380400001)(54906003)(26005)(356005)(82310400003)(2616005)(70206006)(7696005)(82740400003)(7636003)(2906002)(5660300002)(478600001)(6666004)(186003)(36906005)(70586007)(1076003)(36756003)(426003)(36860700001)(8676002)(336012)(86362001)(47076005)(6286002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 15:44:19.3943 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f06b96b4-c839-4cf3-3fba-08d90b25a71d 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: DM6NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0034 Subject: [dpdk-dev] [PATCH v2 00/16] mlx5 common part for crypto driver 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" 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. This is the mlx5 common part that added support for DevX commands needed for crypto driver. Also includes PRM definitions. v2: Add data-path part. Dekel Peled (12): common/mlx5: remove redundant spaces in header file common/mlx5: update GENEVE TLV OPT obj name common/mlx5: optimize read of general obj type caps common/mlx5: add HCA cap for AES-XTS crypto common/mlx5: support general object DEK create op common/mlx5: adjust DevX MKEY fields for crypto common/mlx5: support general obj IMPORT KEK create common/mlx5: support general obj CRYPTO LOGIN create common/mlx5: add crypto BSF struct and defines common/mlx5: support general obj CREDENTIAL create common/mlx5: add crypto register structs and defs common/mlx5: support register write access Shiri Kuzin (2): common/mlx5: share hash list tool common/mlx5: share get ib device match function Suanming Mou (2): common/mlx5: fix cypto bsf attr common/mlx5: add UMR and RDMA write WQE defines drivers/common/mlx5/linux/mlx5_common_os.c | 30 +- drivers/common/mlx5/linux/mlx5_common_os.h | 5 + drivers/common/mlx5/linux/mlx5_nl.c | 2 +- drivers/common/mlx5/meson.build | 15 +- drivers/common/mlx5/mlx5_common.c | 2 +- drivers/common/mlx5/mlx5_common.h | 2 + drivers/common/mlx5/mlx5_common_devx.c | 2 +- drivers/common/mlx5/mlx5_common_log.h | 21 + drivers/common/mlx5/mlx5_common_mp.c | 2 +- drivers/common/mlx5/mlx5_common_mr.c | 2 +- drivers/common/mlx5/mlx5_common_pci.c | 4 +- drivers/common/mlx5/mlx5_common_utils.c | 221 +++++++ drivers/common/mlx5/mlx5_common_utils.h | 202 +++++- drivers/common/mlx5/mlx5_devx_cmds.c | 312 +++++++++- drivers/common/mlx5/mlx5_devx_cmds.h | 66 ++ drivers/common/mlx5/mlx5_malloc.c | 2 +- drivers/common/mlx5/mlx5_prm.h | 610 +++++++++++++------ drivers/common/mlx5/version.map | 24 +- drivers/common/mlx5/windows/mlx5_common_os.c | 2 +- drivers/common/mlx5/windows/mlx5_glue.c | 2 +- drivers/compress/mlx5/mlx5_compress.c | 30 +- drivers/net/mlx5/mlx5_utils.c | 209 ------- drivers/net/mlx5/mlx5_utils.h | 194 +----- drivers/regex/mlx5/mlx5_regex.c | 30 +- drivers/vdpa/mlx5/mlx5_vdpa.c | 32 +- 25 files changed, 1317 insertions(+), 706 deletions(-) create mode 100644 drivers/common/mlx5/mlx5_common_log.h create mode 100644 drivers/common/mlx5/mlx5_common_utils.c -- 2.25.1