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 3007046330; Wed, 5 Mar 2025 07:17:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A031940648; Wed, 5 Mar 2025 07:16:58 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 5C3B0402DE for ; Wed, 5 Mar 2025 07:16:56 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 524B7fkY001359; Tue, 4 Mar 2025 22:16:55 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=l yoJSaoreeLXsUEnuvXJ4uvfMLfRbauJHCnDYjsZc9A=; b=RpHtLw6LBdmF24PGk 8LxN2pNHxUTYNo5x9aJrF7vexEdD4HavK17RVjuJIwKpIg19GW3d+22FExGT5iIw lTjNPwzBeGj89KQLumFniAe7igB5coPtXVIXnEm/vK5QgI5NxwJGZ0mbj5kdN4Mq ZScoGA2AfnX95cIamIUFW0Tcd4mtzziFyh2TpZ3y9iGozY7w7zuAmWDwFLjoIbIN IjU+jSLa0CqAETtwkxGriuIm3nzJnbRS9ikuartwEimANW+T1C/YHMfsBPMLvrhe kEyJD64E2f1tZYA33jNsHDXtv6C8clBKG3HAf0uOJIXPfOxqOdb41A5UnX7ZT6mm r5GLQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 4542mugaqj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 22:16:55 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 4 Mar 2025 22:16:54 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 4 Mar 2025 22:16:54 -0800 Received: from IN-lckQE5Rwctls.marvell.com (unknown [10.28.23.41]) by maili.marvell.com (Postfix) with ESMTP id A9CF73F705F; Tue, 4 Mar 2025 22:16:52 -0800 (PST) From: Gowrishankar Muthukrishnan To: , Akhil Goyal , Fan Zhang CC: , Gowrishankar Muthukrishnan Subject: [v6 6/6] test/crypto: add tests for virtio user PMD Date: Wed, 5 Mar 2025 11:46:14 +0530 Message-ID: <10212b9b54bac27b4b53dd682230f2bb861e4ce6.1741154953.git.gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Qm_X_ONWtZTfIhn5_sA5_2rzjks-zpIY X-Authority-Analysis: v=2.4 cv=H6Ihw/Yi c=1 sm=1 tr=0 ts=67c7ec57 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=Vs1iUdzkB0EA:10 a=M5GUcnROAAAA:8 a=8v8LZVCtSEv4Ub3s21IA:9 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-GUID: Qm_X_ONWtZTfIhn5_sA5_2rzjks-zpIY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-05_03,2025-03-04_02,2024-11-22_01 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 Reuse virtio_crypto tests for testing virtio_crypto_user PMD. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 1 + app/test/test_cryptodev_asym.c | 15 +++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 441ecc6ad5..60aacdc155 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -19737,6 +19737,12 @@ test_cryptodev_virtio(void) return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_VIRTIO_PMD)); } +static int +test_cryptodev_virtio_user(void) +{ + return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_VIRTIO_USER_PMD)); +} + static int test_cryptodev_aesni_mb(void) { @@ -20074,6 +20080,7 @@ REGISTER_DRIVER_TEST(cryptodev_dpaa_sec_autotest, test_cryptodev_dpaa_sec); REGISTER_DRIVER_TEST(cryptodev_ccp_autotest, test_cryptodev_ccp); REGISTER_DRIVER_TEST(cryptodev_uadk_autotest, test_cryptodev_uadk); REGISTER_DRIVER_TEST(cryptodev_virtio_autotest, test_cryptodev_virtio); +REGISTER_DRIVER_TEST(cryptodev_virtio_user_autotest, test_cryptodev_virtio_user); REGISTER_DRIVER_TEST(cryptodev_octeontx_autotest, test_cryptodev_octeontx); REGISTER_DRIVER_TEST(cryptodev_caam_jr_autotest, test_cryptodev_caam_jr); REGISTER_DRIVER_TEST(cryptodev_nitrox_autotest, test_cryptodev_nitrox); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index bb54a33d62..f6c7478f19 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -64,6 +64,7 @@ #define CRYPTODEV_NAME_MVSAM_PMD crypto_mvsam #define CRYPTODEV_NAME_CCP_PMD crypto_ccp #define CRYPTODEV_NAME_VIRTIO_PMD crypto_virtio +#define CRYPTODEV_NAME_VIRTIO_USER_PMD crypto_virtio_user #define CRYPTODEV_NAME_OCTEONTX_SYM_PMD crypto_octeontx #define CRYPTODEV_NAME_CAAM_JR_PMD crypto_caam_jr #define CRYPTODEV_NAME_NITROX_PMD crypto_nitrox_sym diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index ac47be724f..a98e3dc824 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -4118,9 +4118,24 @@ test_cryptodev_virtio_asym(void) return unit_test_suite_runner(&cryptodev_virtio_asym_testsuite); } +static int +test_cryptodev_virtio_user_asym(void) +{ + gbl_driver_id = rte_cryptodev_driver_id_get( + RTE_STR(CRYPTODEV_NAME_VIRTIO_USER_PMD)); + if (gbl_driver_id == -1) { + RTE_LOG(ERR, USER1, "virtio user PMD must be loaded.\n"); + return TEST_FAILED; + } + + /* Use test suite registered for crypto_virtio_user PMD */ + return unit_test_suite_runner(&cryptodev_virtio_asym_testsuite); +} + REGISTER_DRIVER_TEST(cryptodev_openssl_asym_autotest, test_cryptodev_openssl_asym); REGISTER_DRIVER_TEST(cryptodev_qat_asym_autotest, test_cryptodev_qat_asym); REGISTER_DRIVER_TEST(cryptodev_octeontx_asym_autotest, test_cryptodev_octeontx_asym); REGISTER_DRIVER_TEST(cryptodev_cn9k_asym_autotest, test_cryptodev_cn9k_asym); REGISTER_DRIVER_TEST(cryptodev_cn10k_asym_autotest, test_cryptodev_cn10k_asym); REGISTER_DRIVER_TEST(cryptodev_virtio_asym_autotest, test_cryptodev_virtio_asym); +REGISTER_DRIVER_TEST(cryptodev_virtio_user_asym_autotest, test_cryptodev_virtio_user_asym); -- 2.25.1