From patchwork Wed Oct 26 10:54:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 618813 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp317600pvb; Wed, 26 Oct 2022 04:02:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sgRQiULZw1KcoIi4SeA51LD9dsfl7Uy4immmeF3VoTFoxKGsPREkpPHXgSDpnAjXKUwrN X-Received: by 2002:adf:e58c:0:b0:236:6a4c:c605 with SMTP id l12-20020adfe58c000000b002366a4cc605mr12885562wrm.597.1666782121651; Wed, 26 Oct 2022 04:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666782121; cv=none; d=google.com; s=arc-20160816; b=E9NvMrzfXh7Zj2/f9EeW0cw5SU7NnUnPpBP3pMdh7VIoCNyNzZF0dHEG9K013X4p5r DK8/kVMm+lvvBVpC60eCpHJNv5meOtXjYbOV6x2Zq6LaS6AMBPodcUiSW1mbhawgjliN Q6eFRs+eYxH7C4apIPVO8vtcG8jHIlUH9VmElJYebsExjvEbim9axnD5ZMJfBlIeH64E MM1+6XBSovZeUYPSI5+0AXdP82xpQjWq/hfsK/ozOKbHgNiK7FvI152/YGoRo7bc9NZo 4o2aRxpuas/Pza+rXMJdCLz9/ocVJclZ9ED8HOg8dF9N/svUyEGTTrHbe2mf/ao9TT53 lC8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YLQK8xwHrELfFX9ObHmi++zDodD6cvT0mUggqlVEgMg=; b=CNFE65IGoq1Iz1HjaVmeyOPmNTv8K9RoK5HUehLu5vE6UUs6VweK9tGGzFX0bZnM4R O5II/Xat7yhv3W3V0r/hfcO7DjzawlufkazxjCgbx0g8SPtqxBCq620W+UR5avSRTqAK eE5zRI73g0pIB3qITFj/mMzuI1+4WkF1M3Ju0QMrRlC0m37jcRxz4yIijJqFiIrs6Iig Ap/c8W5GGNzTg3CSRzEdmWC30IgoQKUih4gzWFKuZL/gzaU080cf125jJP6F1Bgq/Tpb tylLG7Y7YGxJIjK+fScYa6MRxcWBdCb2slVMqaFs91l7mcS+X7K7lJUe/JRGb7alPB8Q IaCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrDtK8Iq; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id h9-20020a05600c350900b003a5f6f7f204si1249695wmq.209.2022.10.26.04.02.01; Wed, 26 Oct 2022 04:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrDtK8Iq; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F1A942BE6; Wed, 26 Oct 2022 13:01:29 +0200 (CEST) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mails.dpdk.org (Postfix) with ESMTP id 5D0EA41611 for ; Wed, 26 Oct 2022 13:01:22 +0200 (CEST) Received: by mail-wm1-f51.google.com with SMTP id l14-20020a05600c1d0e00b003c6ecc94285so2017032wms.1 for ; Wed, 26 Oct 2022 04:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YLQK8xwHrELfFX9ObHmi++zDodD6cvT0mUggqlVEgMg=; b=FrDtK8IqWY4aMfzZzYmGdoWO1JPWelQ8HEsAHE5jKCtwGA6BTqg46E6vGCq81RkKEn P2uzPCxzMLU+EyQbu8KBJYtCjEWGE5wARYDuMXaaO9HU4NpPK9fz5B0LWaQFifKI50+H DAQtBr6bFxTorK+tKtxu+LDwaaH66fUXdQJyyFmpTLapQL9uqY7dEFyaX20LopE9iRdx lFfKtdGsA/I6ycbsHSm1gLX3Ws/GTh41jKvU7kr7777f2eRt3yFgFHr+jQBfRaLAcpMW 2sOvtNPrPKr++pP9Fe/FA10s2zAmn3TYpToqpZJhtME+2Un5P10Me4NgFA3z+CHpshfO L+Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YLQK8xwHrELfFX9ObHmi++zDodD6cvT0mUggqlVEgMg=; b=3XGTA1xbImNKlttQNHCGzAox24sGPdI5D+nV67+8wjKDx4q1luXKyzt7QZd6CWU4Ui 8dzIe11fKsvodj6Q2MafJuhI4IR/BDWf9Dld/Rt92jFtFpgOMQAqmR3aJLQnLU0paxIZ n46b38wdDrlEI20JnrZwgHRGDNY125RLDZopBezw3RtqiXjNXUicG5cWHrQfEm9fdBV8 uLBEMV00hpjVP22aovxQMB6qW0gEtkTomwijDyoESODvUGBrAB0n5v+897vGpLFAKY9g y0IYGSUV4XOLIUng1CPEqV1zRDEBp8ln/AO8MYTbyRU4mxt7FX632dqgdmM9cYGm14he TdoQ== X-Gm-Message-State: ACrzQf3H8JEYbauXXSUpWQbdnK4cSz7BkNr01H3e5za2qfjc6/4WL2Aw +TK5E/GS3DW7HghU5T8Fp3ztcV50d1Xa8aZq X-Received: by 2002:a05:600c:a4c:b0:3b4:fc1b:81 with SMTP id c12-20020a05600c0a4c00b003b4fc1b0081mr1963032wmq.125.1666782082074; Wed, 26 Oct 2022 04:01:22 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id h14-20020a5d688e000000b0023660f6cecfsm4856094wru.80.2022.10.26.04.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 04:01:21 -0700 (PDT) From: Zhangfei Gao To: Akhil Goyal , Declan Doherty , Fan Zhang , Ashish Gupta , Ray Kinsella , "thomas@monjalon.net" Cc: dev@dpdk.org, acc@openeuler.org, Zhangfei Gao Subject: [PATCH v6 6/6] test/crypto: support uadk PMD Date: Wed, 26 Oct 2022 18:54:29 +0800 Message-Id: <20221026105429.1899867-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221026105429.1899867-1-zhangfei.gao@linaro.org> References: <20221026105429.1899867-1-zhangfei.gao@linaro.org> MIME-Version: 1.0 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 Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/meson.build | 1 + app/test/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/uadk.rst | 3 +++ 4 files changed, 12 insertions(+) diff --git a/app/test/meson.build b/app/test/meson.build index 396b133959..f34d19e3c3 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -312,6 +312,7 @@ driver_test_names = [ 'cryptodev_sw_mvsam_autotest', 'cryptodev_sw_snow3g_autotest', 'cryptodev_sw_zuc_autotest', + 'cryptodev_uadk_autotest', 'dmadev_autotest', 'rawdev_autotest', ] diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 43fcef7e73..101a68fb70 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16538,6 +16538,12 @@ test_cryptodev_qat(void) return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_QAT_SYM_PMD)); } +static int +test_cryptodev_uadk(void) +{ + return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_UADK_PMD)); +} + static int test_cryptodev_virtio(void) { @@ -16881,6 +16887,7 @@ REGISTER_TEST_COMMAND(cryptodev_sw_mvsam_autotest, test_cryptodev_mrvl); REGISTER_TEST_COMMAND(cryptodev_dpaa2_sec_autotest, test_cryptodev_dpaa2_sec); REGISTER_TEST_COMMAND(cryptodev_dpaa_sec_autotest, test_cryptodev_dpaa_sec); REGISTER_TEST_COMMAND(cryptodev_ccp_autotest, test_cryptodev_ccp); +REGISTER_TEST_COMMAND(cryptodev_uadk_autotest, test_cryptodev_uadk); REGISTER_TEST_COMMAND(cryptodev_virtio_autotest, test_cryptodev_virtio); REGISTER_TEST_COMMAND(cryptodev_octeontx_autotest, test_cryptodev_octeontx); REGISTER_TEST_COMMAND(cryptodev_caam_jr_autotest, test_cryptodev_caam_jr); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index 29a7d4db2b..abd795f54a 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -74,6 +74,7 @@ #define CRYPTODEV_NAME_CN9K_PMD crypto_cn9k #define CRYPTODEV_NAME_CN10K_PMD crypto_cn10k #define CRYPTODEV_NAME_MLX5_PMD crypto_mlx5 +#define CRYPTODEV_NAME_UADK_PMD crypto_uadk enum cryptodev_api_test_type { diff --git a/doc/guides/cryptodevs/uadk.rst b/doc/guides/cryptodevs/uadk.rst index 19bb461e72..c9508ecd9e 100644 --- a/doc/guides/cryptodevs/uadk.rst +++ b/doc/guides/cryptodevs/uadk.rst @@ -88,6 +88,9 @@ Test steps $ mount -t hugetlbfs none /mnt/huge_2mb -o pagesize=2MB 5. Run test app + $ sudo dpdk-test --vdev=crypto_uadk --log-level=6 + RTE>>cryptodev_uadk_autotest + RTE>>quit [1] https://github.com/Linaro/uadk