From patchwork Thu Sep 29 03:27:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 610570 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp647762pvb; Wed, 28 Sep 2022 20:28:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kE3/tDjFvfl30/svUZnibxyLzxX//IZoQixgnvA3EodVl6NZKmmIF0yVezrFeKoUTZi4T X-Received: by 2002:a05:600c:1c0d:b0:3b4:92b4:47f6 with SMTP id j13-20020a05600c1c0d00b003b492b447f6mr8766729wms.203.1664422118249; Wed, 28 Sep 2022 20:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664422118; cv=none; d=google.com; s=arc-20160816; b=Ll2jF8/51W/gWhI2SRIZQJhR+g8Bfl1Q9SnEMXXUbHCx4iZb/acFk+1nFvgR59BdyO UZzyQdkvQ5jPftYUIjD5/gO+vQRZunBolIvCDYtMvnPqb+SD0627I5fh4M+Ts+LwoSy6 iCvcd+85emGfIgxFH9+3hYCnTfuM+saXrpiqmgqWeDj10GWGObdUnzPg7tnjvNS4D0Kh 6jYfiifDbffgAuZAF3emYTq5n2wF8Z3tmOJYmU4gpR1wAKDlu1r4q7H3x8xLWdnj6T66 Qic2M4g7d2dKeP5Y+VTnxJdXcCuIuq7YlPSupFAKO8vfJ2mOGI/eEQsszqfaIewF67Za /c6Q== 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=BGcdQOc1bnJ2ZCqvNh3r1sScWnwCKajO19G5gE2o2RA=; b=uK7oFj3iC33fcYLaJVjNPCO/a8/e0bDaOms0UQyq84PYWeQT8WJq1SGgth3qSIlfgF DG1+6TaIGQhz6+ZtDcjDoIBcfScldyNmI9+CsN1ixfU6KJJ39fqT+noZjN6/TgXoolzE 8IDA5S0C4aH1eGggFQau5At6P49lIHe7mRH/CpKXnd+Y9dNsHNO7eHx5+eINPivqgKuQ vO+GzI/loVxa45Buv5aFKrmT4pxd+EO9JLFRzZrKAVW3jnzUsN8IJHRobAuHZWjmfCyO iCB9w9FOIZNjsn207pxm3BSutAVqzx4ogA7aFYi3knU/HogHZARApI5dsS1IlpIilJLm MpRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P43XybCc; 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 w12-20020a05600c474c00b003b4fd67d70esi2432823wmo.5.2022.09.28.20.28.38; Wed, 28 Sep 2022 20:28:38 -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=P43XybCc; 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 4D4EE4113C; Thu, 29 Sep 2022 05:28:32 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id D8D454113C for ; Thu, 29 Sep 2022 05:28:30 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id v186so284917pfv.11 for ; Wed, 28 Sep 2022 20:28:30 -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; bh=BGcdQOc1bnJ2ZCqvNh3r1sScWnwCKajO19G5gE2o2RA=; b=P43XybCcD9VvI7CGb43eYrPsYUcnZ+KRbD2/4c6ir+WhqPJF/4VWRoCPpzyqtQx9FC Ql8X/jlHZjbGyRALpPYxtUbx8LPdzXbAGnSHms+aFCcMlOR8uRByhKRJoPdZ/cu2Yfl8 q76bceaddYotEdgzSyOtQEJju07ciSfbpZRmwM1seuB76rYYy5duobEU7t344NDoukM4 41gPpEfRFRFtrz0ZcpsOGjPKzVxj0YYPserx70SB4qtcCE320BCRi8Xh3XCHQBams/WZ 4UVquX2gIhYDqi+0gz4J3OgOkzgNmbOvmrOr5tnEdGrTI7bXP0SYyTWCh2lRW2OoU5Ai tQFA== 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; bh=BGcdQOc1bnJ2ZCqvNh3r1sScWnwCKajO19G5gE2o2RA=; b=IPyKVZwMW1omvznCX3YRoVImMjDDcro8/ywBxwQIOTg9VfAhpXgTmypNb5irzMNtVH yvfoEXzGZap4t4gtu9t4D1PprTNfbz09x7fvyf6uUPUtNoFdJ7lgHbVrp85EGIg7WOMR MHIwc+BFdTWOn6iyBbrdAhcx2NCp7BIWku+DuosJhusbN1Lqsfjpe5UW5QPjMIfDn/kC eB10M1KDkSq4CpNISpnFi+5zGVH9vUOg4JwbZtmem1TQDLhyuhwZvmB/ILpwY23UzSAw wVfPQSsUlGLF955ov9iCpK95sOzPFAy34+wfbiPXfvdw3MZL0jWeVREqpEf7tSwZFmwu STjg== X-Gm-Message-State: ACrzQf0o3wC+0yX35D0gpIwAyWjhMNDbXltLrxS26wItyVopDMiPIBFD vnmmPbbOP2dzXPTfy37Piabckg== X-Received: by 2002:a63:4c02:0:b0:43c:96b:e6a6 with SMTP id z2-20020a634c02000000b0043c096be6a6mr1014866pga.288.1664422110198; Wed, 28 Sep 2022 20:28:30 -0700 (PDT) Received: from localhost.localdomain ([45.128.198.71]) by smtp.gmail.com with ESMTPSA id gn4-20020a17090ac78400b001fd66d5c42csm2304271pjb.49.2022.09.28.20.28.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Sep 2022 20:28:29 -0700 (PDT) From: Zhangfei Gao To: Akhil Goyal , Declan Doherty , Fan Zhang , Ashish Gupta , Ray Kinsella Cc: dev@dpdk.org, acc@openeuler.org, Zhangfei Gao Subject: [PATCH v3 6/6] test/crypto: add cryptodev_uadk_autotest Date: Thu, 29 Sep 2022 11:27:46 +0800 Message-Id: <20220929032746.10659-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220929032746.10659-1-zhangfei.gao@linaro.org> References: <20220929032746.10659-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/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 1 + 2 files changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 6ee4480399..7541cffd36 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16580,6 +16580,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) { @@ -16923,6 +16929,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 {