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 38D77A0C41; Thu, 15 Jul 2021 18:43:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B69A941351; Thu, 15 Jul 2021 18:42:37 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2076.outbound.protection.outlook.com [40.107.95.76]) by mails.dpdk.org (Postfix) with ESMTP id 9872541337 for ; Thu, 15 Jul 2021 18:42:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Er5NLjamxDbAxZOOLNyItKmos6eAJKvdHBsSX72NZja+jKUz2A/1SXoy0d1tldei2OSmMlqO39XdSZirr4x2vr7otugiCSgBItjZJFHG4EyD8kwlQiSHBcQIV7KsPXSaHsnZT6/rKIxyLi/Zbacyxo97YzuTFY35PpdUbslSx+6+vYLkCeuLeXhlhN3+uoe9mRieAxOKX3uqVPqkoik8TeZbvImJz+lWRi2/tXPomXzjT9WH0chs0ugU6USH30X6aqO/ByYTmU4pKLYYuohL7ASjdxIrWcEXqL/UFyVYdfBgvB8oShq6jZJxKvzuNSIRc1qVHMODnWzoCalzdk3iOA== 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=DUOirRn6KdVyWW/CEFulGBSxKWrQ64NGKjrwE7ha3Aw=; b=aVERjlIwPiEPVg/Uf/5hF7j56Ft6LGisjZZyrkpANTcizO1vojTKP8h9jMKwR/4VHFNFvydv37ATVWz9XtwQ/RUWBmJmlZnuKdufLrjwnt+O55uYwRnSB/z4IjdsmENP5+IZFb6ZBxVJTfuIhDrKd1ujk/xABIaITbSnFqt6AGWIuIjQETqr7Q34hKsAaCfc5xEtcQGIzTlN7HuJqIfoOoRlw/LBPxjLgmBgCPgqSJyLjkO4MKFHCt3r/FQFat1qrUq6sUWI6t5HKJadLo7IdJ63JBFpftZpXpnV5h+2sxy1YKGnao1Q7GqAnOa8QF73xVqbm3Dls6nKd4v4AN7iPw== 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=DUOirRn6KdVyWW/CEFulGBSxKWrQ64NGKjrwE7ha3Aw=; b=kO5XlDUFg+cD4nBUQDqc/PU+6SzsOD+/FqZvRxrIzs5tiK1Ls3DOUgUIbyuFQ0zMWfsK/IjSmR/d+43AOrTII0XcYM0VG54wLY0xeI16uPm+Bf+NIVmOUoYcFGS5qXL8cFGeNy+ZyrFwrZmJkaW8jt8wSRAMakzUxDjj90UaiYbB54pHRc2+PcsY8XXawexPp3sVwKvHF08Anw1k2nmibLMPvHcEk8GRVZvBGLux0FfD4rJrPZE0s88ugvFxFLXSar1r/QnDBXY3o3LRfEH0WGv5nAXhRiSOkfL7v7jwVaWtrKM/EeKhJN5Be8MSPj/MXmg55JqjAuoHao5idSwokA== Received: from MW4PR04CA0360.namprd04.prod.outlook.com (2603:10b6:303:8a::35) by BYAPR12MB2808.namprd12.prod.outlook.com (2603:10b6:a03:69::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Thu, 15 Jul 2021 16:42:26 +0000 Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8a:cafe::8d) by MW4PR04CA0360.outlook.office365.com (2603:10b6:303:8a::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Thu, 15 Jul 2021 16:42:26 +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 CO1NAM11FT037.mail.protection.outlook.com (10.13.174.91) 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 16:42:25 +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 16:42:23 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 19:41:24 +0300 Message-ID: <20210715164126.54073-15-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210715164126.54073-1-shirik@nvidia.com> References: <20210715150817.51485-1-shirik@nvidia.com> <20210715164126.54073-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: 65d0eea7-e971-4584-bf59-08d947af86f0 X-MS-TrafficTypeDiagnostic: BYAPR12MB2808: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N5tzZlUF4qw5Z6BWCOWVd8E3Cjs1H5BdCgLedabZHQKybX5AMlnaqhMlBKkFwlgHRb7v8dV74EmRh3uqypXwtKvY9Kpvht2Uek3qcBRXWvcG+BU18C1gbL1EnvuEA9rGsYdyf332ozb418Sz8P9OYPtZYysI+4HvACOGxHpZFN86KqKw+Ksq/gmyyVmAljvrmnVzf9ZDO4Ix6sxEhNRDQXUI9+tDJm1KV5IGy/qw4MfKIglexiwHgK8JxJQdPhmgTEd+zt6UeA9rs6iKTvdfsJBHkOycue869uOSj6ngGFwr9Yq3ml+HDzbYkbJ6mcqnHRYr1CClTELZTN3W5xL7TshTNq+LbHY3QLpjWvQquN0WSHUDlqJ+LyyO6JZnCpr571tTLB6Wsaz9ChmaFe+lXUDGo70DZMOC7n8X+JRNMvD6u2cX1y4bpXite4OqtQejUUIqUDt7faDCKWjgJcY3vt85OX6pEmb+QEzvFFofDfgQRI61R3ZmavrByUyca5FYzr/BiFZCpAkNFPrfFqNu6AP87rwrM/+FBRrP6NxqZmuJ1sXJQ3FpZPeINarPxk4vdvphSlfLP3mdja8MXKia0Kd2xFIqQWdlJe1rcN4E4XNgycvy6/aff1JQOuLEU4jgjDlMZc7pmdIj2jfD8NF4K7yMvVtUPSS7Yw7Sk1p9aTY2+rZvFOVWsk9Mr6J0SLz4LiDdDUJMGimnG0xnPAgAsclwGA3ppqnsC6q0YwoUshk= 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)(136003)(396003)(39860400002)(46966006)(36840700001)(8936002)(336012)(82310400003)(356005)(54906003)(7636003)(8676002)(83380400001)(47076005)(1076003)(5660300002)(55016002)(36906005)(36860700001)(16526019)(6916009)(70206006)(2906002)(186003)(2616005)(82740400003)(86362001)(26005)(316002)(34020700004)(478600001)(7696005)(4326008)(426003)(6286002)(36756003)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 16:42:25.7299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65d0eea7-e971-4584-bf59-08d947af86f0 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: CO1NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2808 Subject: [dpdk-dev] [PATCH v8 14/16] 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 Acked-by: Matan Azrad --- app/test/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 2 ++ doc/guides/cryptodevs/mlx5.rst | 3 +++ 3 files changed, 12 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 31201d93e1..e46668a1e0 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -14569,6 +14569,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) { @@ -14797,6 +14803,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 5bf1e8818b..262e545ee6 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -73,6 +73,8 @@ #define CRYPTODEV_NAME_BCMFS_PMD crypto_bcmfs #define CRYPTODEV_NAME_CN9K_PMD crypto_cn9k #define CRYPTODEV_NAME_CN10K_PMD crypto_cn10k +#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