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 4780EA0C48; Thu, 8 Jul 2021 17:27:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 120024166E; Thu, 8 Jul 2021 17:26:38 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2041.outbound.protection.outlook.com [40.107.92.41]) by mails.dpdk.org (Postfix) with ESMTP id 65A444165F for ; Thu, 8 Jul 2021 17:26:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WVbvBO9t/0yE324lhT/xdSF/K1wn1gqVbaGyvvpW7gJdGPr2i6LMCAkfuUhTOj4XJaJmjHME7+CNJJdYyyFfZeH1rT5RUNRssMN7Q5crNLBnOrbuZqrifEZbXKSXPm3S24YMCZGWVOYvhQE6T1BZoOQO1n2dEa/Z1KiKZtTeY80JDEGVEEZgDJk/AuMmNy+l1D4t9syw5tgVoy722pgovIAzCfwsSZYzFmOKYhGQ4fn4NFjEnQgxlp7TVRKMJ+bVzmL+xUyT3uP6kCSHP95tqhFwedHWyfmv0X07UA8S14qicl9OCNkwJ4vJ363om5hqDQHhaLVGBtrcB0qzCbt2NQ== 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=lr1kaCwT7SVWpH9uTzwA+uWTSNYTMaRmc5+k7Yt1SdY=; b=g1t2dddqhyK/qUWeIujLEF0aIusG0aT3bI+lqRPKI8LqGKB4AX731bevSgpXcWyjnGOjArt0tRdrGDDNeX8wB+Dvbt/jJ658Zvpib5NufMpHRX8MmVUbM4aKQs4HLGDUourLgmvPg4fwZDiFgxkyJkt+/UgFgej2A3JaYSH6UY4yPboyKogyNLh3uuYAtUeBYpLw92WB5jAjSyuWNBdS2udbQ3LvKQY/bgxPxt1OzHg+AQiWQWQ+oK+uvJqMg9Nc88F0y5lZktkzJnsPlChVuqS9Q0GpNqKZXQDVpvqNeKP4xC3VONqN+jaU6ZQtqzMG6UvBvxvYJzet2IJb0UOhZQ== 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=lr1kaCwT7SVWpH9uTzwA+uWTSNYTMaRmc5+k7Yt1SdY=; b=SJ1cQX+acR6+Y87YuRsf+3gfXHBy+tibOvEpwBb0i5HmT/h1389idTgWneVt+qR7ht95rHhAnZBje+Sg8HoP/3aYekhJR4eBeRyq/MiF35ipuVV3LSJ3konXOavpnyDwCc8u5eY6NA+4svDkajcOgdOiap8MX5q0+BXrtmNvnEdBeyVkPIVSEHLX0uTDtZZZmGL00LZtPFwe6c/5UOxB5UmFCpXcRnnzrOuWv67GRCFi4wdTq5vIdNCxcNOib1aLpjKVnq0VcitB1lBv5V/uif2dnJ2wgRdaMddQpXb3y7AvnpRILqmT/HIIpAEUxLtaIAUcfkj27zaCUjKQQGI7EQ== Received: from BN6PR19CA0100.namprd19.prod.outlook.com (2603:10b6:404:a0::14) by MN2PR12MB4845.namprd12.prod.outlook.com (2603:10b6:208:183::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Thu, 8 Jul 2021 15:26:31 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:404:a0:cafe::b9) by BN6PR19CA0100.outlook.office365.com (2603:10b6:404:a0::14) 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:31 +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 BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) 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:30 +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:28 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 8 Jul 2021 18:25:29 +0300 Message-ID: <20210708152530.25835-15-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210708152530.25835-1-shirik@nvidia.com> References: <20210701132609.53727-1-shirik@nvidia.com> <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: 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: 2351a2b8-fb1c-4555-ed59-08d94224c332 X-MS-TrafficTypeDiagnostic: MN2PR12MB4845: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /HgJv1xiTcfw/rbtyAlUhRzgpMJOu+K4+DPs1F2nbKS2gpiAtu3d2/sepBwWkr6D4bvklhEANfJOQ4wsM7LbDdgIk501CBDBG5x3RM8Oa9SCAhonMNvG9CWK2aCfDsK5See/+EqiSG8Idabr/bA09EW29zhurjyEPMHMaQqheERGnjhc4POz6JngQDEX/gp0Y9wT6/qFL+U4ML1XH4y36LPycAqCxD6yTAZPss2yemmb7RKuKHCxuqRDMNHCspQHXTJyuDKmrwWvtYDjQm9C34pYuk9iUta2DA91XuB38fISvh01HqJUYMbuUGh3e1MwLhfhtvI0dIynyYPooyDDUbTBJ97+qCNuVMOohL6PErwLbkLKuhP1Mm8tVbwyiiafLc6xHNcaZDBWC/YgzAAK59PSc+Yv87J2wY3RQpJO0C2hgE61XA/Yu3bI5nLH8OszMHDTCuDS6DV0OrxAbPaggEXt0s/vdA2/QcGdaCuB/ILstP0TjcgHwrRFtCYPimH1krTZ9REv4ZsDzm1nboIKNDjJDo+R7jLSckoiTtpJt6cjO+CvBHJ/+Sj3roEP7iLpcFfYx7LAo8zAMOWtQY9B+cISCJBCXeoNtVGmYujxcARpRWugRptJ00wnQHn9UzsjY+HGEtxQja/DiLgWyeoRQ/1U96oaAIAR28QXdbD3BNaItERRb/e3kGoN7jaxkus12LZ+X93Rhjx/e6EdFpH+gw== 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)(346002)(376002)(396003)(136003)(39850400004)(36840700001)(46966006)(5660300002)(36860700001)(86362001)(54906003)(16526019)(426003)(356005)(82740400003)(36756003)(7636003)(82310400003)(83380400001)(2906002)(186003)(1076003)(6286002)(316002)(7696005)(4326008)(8936002)(26005)(6916009)(336012)(478600001)(36906005)(8676002)(70586007)(55016002)(70206006)(2616005)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 15:26:30.9057 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2351a2b8-fb1c-4555-ed59-08d94224c332 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: BN8NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4845 Subject: [dpdk-dev] [PATCH v6 14/15] test/crypto: add mlx5 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" In order to test the new mlx5 crypto PMD, the driver is added to the crypto test application. Signed-off-by: Shiri Kuzin --- app/test/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/mlx5.rst | 3 +++ 3 files changed, 11 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 39db52b17a..76a5ae789b 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -14572,6 +14572,12 @@ test_cryptodev_cpu_aesni_gcm(void) return rc; } +static int +test_cryptodev_mlx5(void /*argv __rte_unused, int argc __rte_unused*/) +{ + return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_MLX5_PMD)); +} + static int test_cryptodev_null(void) { @@ -14788,6 +14794,7 @@ REGISTER_TEST_COMMAND(cryptodev_openssl_autotest, test_cryptodev_openssl); REGISTER_TEST_COMMAND(cryptodev_aesni_gcm_autotest, test_cryptodev_aesni_gcm); REGISTER_TEST_COMMAND(cryptodev_cpu_aesni_gcm_autotest, test_cryptodev_cpu_aesni_gcm); +REGISTER_TEST_COMMAND(cryptodev_mlx5_autotest, test_cryptodev_mlx5); REGISTER_TEST_COMMAND(cryptodev_null_autotest, test_cryptodev_null); REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_autotest, test_cryptodev_sw_snow3g); REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_autotest, test_cryptodev_sw_kasumi); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index f81f8e372f..e280da910c 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -71,6 +71,7 @@ #define CRYPTODEV_NAME_CAAM_JR_PMD crypto_caam_jr #define CRYPTODEV_NAME_NITROX_PMD crypto_nitrox_sym #define CRYPTODEV_NAME_BCMFS_PMD crypto_bcmfs +#define CRYPTODEV_NAME_MLX5_PMD mlx5_crypto enum cryptodev_api_test_type { CRYPTODEV_API_TEST = 0, diff --git a/doc/guides/cryptodevs/mlx5.rst b/doc/guides/cryptodevs/mlx5.rst index dd4705b744..2023dd1b3b 100644 --- a/doc/guides/cryptodevs/mlx5.rst +++ b/doc/guides/cryptodevs/mlx5.rst @@ -92,6 +92,9 @@ The mlxreg dedicated tool should be used as follows: The "wrapped_crypto_operational" value will be "0x00000001" if the mode was successfully changed to operational mode. + The mlx5 crypto PMD can be verfied by running the test application: + ./build/app/test/dpdk-test -c 1 -n 1 -w ,class=crypto,wcs_file= + RTE>>cryptodev_mlx5_autotest Driver options -------------- -- 2.27.0