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 EBD89A0A0C; Thu, 15 Jul 2021 17:10:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA0884133C; Thu, 15 Jul 2021 17:09:37 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2046.outbound.protection.outlook.com [40.107.94.46]) by mails.dpdk.org (Postfix) with ESMTP id B0F4E4131B for ; Thu, 15 Jul 2021 17:09:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nF4pMq7JndWsb1kh73+dIdk3pyIyPgClQW3LkEGMWret1wBhIiQiBT7bZA7r+7E0GB94+QZ9eGN9vrBe9WNBvXeao6x267M75FhvyEAaCUwzlVv+vljjB7YiiX6nPHSdzhvfPC4bHLLKXoIa0AyHT90VSfqojapT3blaKHx3qHb79EFvTWqCNKHIP/AmSkw/4kM4P6WWTCd8h904gvCrns3RE9Vbkqn4gFug4/bI0eZJS09vi0XMBeOOoMH8uHJRr/jyHLRrj3F6Ww23+Fj4BRA/eAr6kk3Do84gp/0mI6EMJyG2wXmtWXawgnD3L4MQyEw0rFACjQ93tHy6U/bIWw== 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=lBkLGixyAdgVDtbggofYRsCiuQaXahqTmpJOlpoMQY/1j7EVOBsDeyvA44UJ7aeYDGEN5DOOmfgexKlkCWVL1DhNWO8w55j2QZ1HmqpHnn93foEWSPU56hy9Hmakoyx4bnzIiHevMLSWcw7oulAMqvUnm8AVpAsslXS1SYQB4K43rcKoTkGpvE8d1keXzunl2vUIWqFzMBKcB/2aIDjIhKjPZDzGAYNYAdMMEI0jMiZiUHWv4QqYgHtAfaNjiKvdCOssV61lo8eowhvS66Qg/2ahbUdecRWyK026kIxa5ErEVmTlPde+owUQEyTUqv5dW+vnzl9bLy7awjfAvmI+eA== 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=tKII2HEt3QF7o4EUuex6HjvP9pdE/M9GZ70yyAvZioHzjRJPajyLfOAihvmWng219SirWhMzk8DvRdrenl8aZd+jGd7RXmYPl0TqoUaiCKImh7+IWTdKaw4QtVsSv+gqHJE0pNitKYbfuF8409fh0EzR0eKYW63/kfAdY4DYpqFdG+ECzQpr66Kkda4fRV/l6Vkk8ReD34sJOXF7e5IHe9wMfxwXOiHkNQhW/BNjRzvSBjey22XaZEFEMPhsVf4DjjBFTMypnpuZol2EWmKtTuBq/BAkYcmH5MmVunUsDgaJmvvmEvmwrVSaYdtNDrFz1xTv1eY2aIr+CH1NlCJVvQ== Received: from MW4PR04CA0065.namprd04.prod.outlook.com (2603:10b6:303:6b::10) by CY4PR12MB1686.namprd12.prod.outlook.com (2603:10b6:910:c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Thu, 15 Jul 2021 15:09:27 +0000 Received: from CO1NAM11FT015.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6b:cafe::d0) by MW4PR04CA0065.outlook.office365.com (2603:10b6:303:6b::10) 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:27 +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 CO1NAM11FT015.mail.protection.outlook.com (10.13.175.130) 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:26 +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:09:24 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 18:08:15 +0300 Message-ID: <20210715150817.51485-15-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210715150817.51485-1-shirik@nvidia.com> References: <20210708152530.25835-1-shirik@nvidia.com> <20210715150817.51485-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: bfca4331-26a2-449f-ca5f-08d947a289be X-MS-TrafficTypeDiagnostic: CY4PR12MB1686: 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: JQpEJNILznwIB69k4XJoHArO9D1pD80h5+qZXeu4+awOXcGukFUlsDjJmwMzWgRIidS6XqgaG/a1PwNotjqWYpQFe+C+psJ4lzZlue8xpvUq4KajLQDIdAIRwgceaf5LjdtWbe1Ju5Hn4baTYFsnGvDTcVdGG4UG4EC+dC1ck6v6ywasnPrtGlTAB5QwFr3McmvXc33edAPy3VsvFwjoUv33wdItDDB3WWGYgZRZS68IB44Y/45zAU9vF1vbFrHjRA/ee+N98Yr73BFkXY7hzGuMdysfdmmAFoDxeUqJ0zV9MEHAgXahQ5bq1/DpIxyrvRQSsYbomslRJ8WC0F79u2gR2oDqY7NcKio/CAHEmi+ATT9mV7avsleBVx2xDUKN1jNxbTUlyZ+gpIUfSIs73uAcjkuXxaPFFETwztN0rbLqexVkKEcV13zGuJcuebAL/EBRHVtSADJ/MHMrneyoC97m/rr+bEKkUzPfr6yn2bl6XEBxg5fcKNi2zFw4Z3crZjXLgyheguD2o+6LGOE3WQqqulee+c+NIHyz58aHzi1hDJHJ3bPAyERRngXzI8cbaB18X6lVuSi5lyr0K4qlGiikyaJz6YCGsHUv1LyPVpbeqrwJVYHcIisJH/HQB/TMZoagnewp7fLB0wsU5iTvQLpfiLMaqmB/Exs0oMPsrd0RJshf6RMmPxesvgYPBMuNkwNXRSzEATKEJvg4pZgWTVy/yHs+5f7u3+ES/afPLj0= 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)(396003)(346002)(136003)(39850400004)(46966006)(36840700001)(82310400003)(26005)(2616005)(36860700001)(86362001)(426003)(6916009)(316002)(70206006)(356005)(54906003)(478600001)(7636003)(34020700004)(82740400003)(55016002)(6666004)(8676002)(83380400001)(7696005)(47076005)(70586007)(186003)(1076003)(36906005)(4326008)(2906002)(36756003)(6286002)(5660300002)(8936002)(16526019)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 15:09:26.9722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfca4331-26a2-449f-ca5f-08d947a289be 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: CO1NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1686 Subject: [dpdk-dev] [PATCH v7 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