From patchwork Sun Sep 11 05:23:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 604777 Delivered-To: patch@linaro.org Received: by 2002:a05:6504:2213:b0:1da:4c02:b5e7 with SMTP id z19csp1853484ltw; Sat, 10 Sep 2022 22:24:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Tw8k1tH8K4r9SjIwcP8a2rBZJYmAbHYdwBdUe84eLbGLbaNfNeTYvMnun7DF/5Ex8t53Q X-Received: by 2002:a05:6000:384:b0:22a:5d05:c562 with SMTP id u4-20020a056000038400b0022a5d05c562mr1726385wrf.701.1662873855366; Sat, 10 Sep 2022 22:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662873855; cv=none; d=google.com; s=arc-20160816; b=xsUZn5Oate3xz8JKuHMeySzxAWkw8Q49DT7M0rTS86CDgqMkYDC6sN4m0YL/roupv2 P69LLPriywWrKJeZsU3bwAExxZ0h0uRne3y0iOjGIPUJPSLm2AkjvL5fGmh1bzkO/nv+ SBw2QTyFDNbLYwupZRjLMKwCbX+6BifxBkiudORjMywCIDre0OO9CcMhLEz4FZExk+iq 6Kl5Lm7Wffwa2LPxutYuk0qHG8THEpJjZIkJgVlDHUKXI/6v+IontBkvTnOsehHxP+bn MEIsWsoQgvTF4VwUzQClLDoLt9RX+hFUR1e/v5xbRe6unCWxKkpuCShX4vkVw4UHnwSM E/PQ== 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=x7waRXeAX2bxcjfA2QVh196HDivjPjw1hm0p9i4XP8x4NESNE8G68ARbsiC9iONTts hffl6QbtH8YYCJ2mh8Oy2+Sk2TVVl8e3wP6JrOsCMMFf7mJu+4BcxVudBzPMhn1b1RxC I6UiNSemjO6dh7CmVsBgS4v1U8ZzbQY4mF8AlMpqgKZLjHrbz7ZqyDAjfaC9Wq0egbL7 UT3mAdpzPlnciI8sORfPzl3rDZl8Wn4FkswKZnp5AlydkXNcgcMGrm2SVmvEwGvJJkHI zsV9LGf6hfjuVWl00ndEU19tINWI2sa5h/vu/gLizb8eqhD9asDpvz6dsmHfe2qtCGmQ c2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p+cPHkMd; 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 w7-20020adfde87000000b00228639b6695si2815337wrl.815.2022.09.10.22.24.15; Sat, 10 Sep 2022 22:24:15 -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=p+cPHkMd; 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 215C0427F1; Sun, 11 Sep 2022 07:24:15 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id A87AB4003C for ; Sun, 11 Sep 2022 07:24:13 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id jm11so5546249plb.13 for ; Sat, 10 Sep 2022 22:24:13 -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=p+cPHkMdPGPDql9yWMcHhzHHS6z70tkFnwBdPyyzwg67ahQLKY8uwK4769WB774JWY 3y6conOkDtG2kQcLbnMZ1OAIVca38aA5+GlsII0S9ckUox5sPocLAvc/cqvnan/OGcVl nzpEb0VQAJXa6ZAKgBxUzHQkqO3WNNtTxlvX1W5TD0UETrqiHye261PjetMgdakjCyhf 1Qd4OEOe9Ox2X/tTsAZckPNtIb1so5WEHv9f9eqD23P6hbXDLnuQnhKL83wGbykx+EWm 6SRLD4qrd7Bu9GeTaGOKKT5MNLRa5HJNMJjy/hshEco/Mx8kznQ5qPHe3rgNKLBvQFSd URnw== 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=2i7vwuKkX2P96i3owsGbJkbOEqUWhoLftSfKqTmOxxXSBpN6mm7UUgaCjHvNKccrJc u8M15N5/Ebb/IzzLSkjZgIkJgHbn0SJEZbnDfCZivUsleLYmh5PsB1auznEOe3sMvJ3t L8PqwlGfk+9JsEb9ltXzJgnqZu1Tyf9gJ04vJgXSGqx2wESrKdxsy0BS5d1e5MWaqMBa RujGNV3V6s1O3uC8+McgLiJ/CKUFgQTHxXMmFaiOleXgAnJ8JhipCu7UArpJEGwJQE3k p5ch6+l83IdKqeZ2jKccjgVR+pSr/iOTL7ODmHSfV4JaRvA9Qb31Bbu658QLewGB1jW9 jp1Q== X-Gm-Message-State: ACgBeo09fQHLiyFj8DIXl35bkvm1wfqHhEO+rwuGHfBNdCfHJGiZ15si VCNypUVaU4TBcmcqeBYyaGeCcw== X-Received: by 2002:a17:903:3294:b0:176:8d60:b947 with SMTP id jh20-20020a170903329400b001768d60b947mr20730189plb.56.1662873852974; Sat, 10 Sep 2022 22:24:12 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.45]) by smtp.gmail.com with ESMTPSA id z11-20020a170902cccb00b00173cfaed233sm3215860ple.62.2022.09.10.22.24.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2022 22:24:12 -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 1/5] test/crypto: add cryptodev_uadk_autotest Date: Sun, 11 Sep 2022 13:23:40 +0800 Message-Id: <20220911052344.31239-2-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220911052344.31239-1-zhangfei.gao@linaro.org> References: <20220911052344.31239-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 {