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 19A38A0C48; Tue, 20 Jul 2021 15:12:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0518C411BC; Tue, 20 Jul 2021 15:10:36 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2072.outbound.protection.outlook.com [40.107.220.72]) by mails.dpdk.org (Postfix) with ESMTP id 53007411AC for ; Tue, 20 Jul 2021 15:10:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=azh62jQA+0hkNdTo/L1AsQEqHw61Y2YWj3/zWeFb/RjQSFbijCIk3eIzV4ZyaM9UTjUbCRscrj/xR8+8AcSXa93W+wQMP2q4rht5swsMGW7RtrBnPKRHfprYEJSH5Ksd08sQ7Wdn/qR6lSe7foqA2KdSDHajwPdh652EWbRODDiOvQO5vWFL0NhRvhgoGNVWUcS1IDnqdWL4k8oDpka7lW8Nw867YN0xb2FMru5jz1aB+BNh3rkkt+KTkSPUdfokcWy+UB24WBlNgMYaUberB3VaCEGfYHsaVdkjR6dUSKx/mOCLqrViuZorXiwj3NOc3B1Ull3qV9bUzD2Y6X86Gg== 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=+Gmz9klBOy7G6GEuyQKEQ7N7rf8w+jiIwlESYq3tfq8=; b=LhLDwS4FWBkNFeQ1hXKJ+e68Ms7iFVPxK6nSHBM+WTAOtPTL2COiJLS3wgSLVG4eUMh+zpeADIFbHiGTRbDt90vQD82dAb3lhSgJXpcfHVNTqGKbEpLno9Esl/hfMYhdVYKm3tSgQIgJF+DlppxrVGYnx51ujE4xJKldTf1riVRp86TLkKdfGwTUmQrlAKIQy3KC3lwnTr2qrl+O9m7by3scu/tRRW4OQ6RbDjsEbSmJ7lKvnFE2VrBxhZaDf5ksynsuYM7uJLy0WBAisHEw7ETnZPmEUZqpy1I7JpsI84GWgQ64MBXTuPFUNPOA3gkUCEOg/2SOdZLtgHu4FW7TRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=+Gmz9klBOy7G6GEuyQKEQ7N7rf8w+jiIwlESYq3tfq8=; b=TKmlcSTGiryFq4vG16bfjhLx9LxRNy3D/z8SVFAB0LyIY2Tlc+j8/aYT1PNAbKKcJs/XqLSwN+22q3exrod9jCqRW7AJ4SL0OJqBCHDGN2bZo0hQjDB92Syinh17qM/cMI6md+jWsrE/6xrFRNHA6CbylxKS90xlcksrdSDARgwo0OXWfe91JpnahQFYyNla+QaAD46e5hG/9ey4BxIQMuJ3INgr3vZ/HavmaqtgHqZyRun3cL4Wfj55UVTpN4MzA7TtHMOpT9FvFxgCyfpNJljukDIGDkYjnKkfdd2GZ7mOdKRThrSRlq6OknNaEDcACTCTWl56HbBN6pyxJprJnw== Received: from MW3PR05CA0028.namprd05.prod.outlook.com (2603:10b6:303:2b::33) by MN2PR12MB4471.namprd12.prod.outlook.com (2603:10b6:208:26f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Tue, 20 Jul 2021 13:10:31 +0000 Received: from CO1NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2b:cafe::7d) by MW3PR05CA0028.outlook.office365.com (2603:10b6:303:2b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.8 via Frontend Transport; Tue, 20 Jul 2021 13:10:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 CO1NAM11FT040.mail.protection.outlook.com (10.13.174.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 13:10:31 +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; Tue, 20 Jul 2021 13:10:29 +0000 From: Suanming Mou To: , CC: , , Date: Tue, 20 Jul 2021 16:09:44 +0300 Message-ID: <20210720130944.5407-16-suanmingm@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20210720130944.5407-1-suanmingm@nvidia.com> References: <20210408204849.9543-1-shirik@nvidia.com> <20210720130944.5407-1-suanmingm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e345fbbd-c904-42ff-6f2a-08d94b7fc0bf X-MS-TrafficTypeDiagnostic: MN2PR12MB4471: 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: OkU/UL7fHiWOGw4MnSQ86FN6l3wmA5qKUaU1siWcYWoc8MdJxLZWdBu56UunmHJexpFrWvxuPJ5JJuHeswZOnRmyK1XlCDHy2sNWnpSGKYBtdl/D0bOTC+mr0uITjM4TGZsCgntaDovdyEUQzB/lhPOj6PqMusSJcZCFv9rYEFaHaYbxSMyzeXeDyP6AdNSDtMhRHXUxZ3azyQrIyve4qnYbpHnC2GRaGbCJ3Nm2XNN6zwA7D0SWwwG6p4RJWM2bcynVSpXedeeigk2tCXJkw6Xm7ocEp6/tGa/8709U97VwRJfKSnMqmDSmy7b+F3BC/Q3esmufFi3m2ZSXtTTzW/74+qPr6/JxZ3Bb0rNyFBIgGe/BpObuI5OR5vndDQNOeXCJR5AOcjeS9Txv7EOrjfxD+EADkPi3ua9HadtJM0JeTLAJuLbjryawYgo5WXRNL8okVt2eG09bhUS/YFNarvlsZGq/nqnst5OXp7vDPSTb9JcWbeLQv3c7Gi3IlOFdEh+tM/gGUR/Pd8c/DK1YHRMpmZ4KqgVHvMNHvwU6m9e6m7odrUdJdvhvSGJ9AzIGIjF52+sBro9rfXV2/415AA6/AUUWL/gzSO5q5q63lJw45LtOvgRmx8lEhN04zghifyq92JYdmS3KwQR7hKTCcQwzoNkJ/TvYXe/OwzXZ0T3QcwXChi5KXT3gao43wPRCtophWUNWuFBrENWLzYOkpg== 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)(376002)(136003)(39860400002)(346002)(36840700001)(46966006)(110136005)(70206006)(8936002)(2906002)(426003)(2616005)(54906003)(6666004)(336012)(1076003)(6286002)(26005)(316002)(186003)(36906005)(7696005)(70586007)(16526019)(8676002)(4326008)(36756003)(5660300002)(356005)(82740400003)(82310400003)(7636003)(47076005)(83380400001)(86362001)(36860700001)(478600001)(55016002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 13:10:31.4887 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e345fbbd-c904-42ff-6f2a-08d94b7fc0bf 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: CO1NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4471 Subject: [dpdk-dev] [PATCH v9 15/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" From: Shiri Kuzin 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..c752c1e8f2 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) +{ + 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..31e278261a 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 crypto_mlx5 + enum cryptodev_api_test_type { CRYPTODEV_API_TEST = 0, diff --git a/doc/guides/cryptodevs/mlx5.rst b/doc/guides/cryptodevs/mlx5.rst index b20f593549..39d89b2b95 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.25.1