From patchwork Fri Sep 23 02:40:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 608575 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp37543pvb; Thu, 22 Sep 2022 19:40:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/MDTSkGBg8CUKw6UdjR3XK1G18lDCWFdyP7xQWYtMiBHsuBP2iX6qoRRo1VnMtWfIgCsa X-Received: by 2002:a05:6000:10cd:b0:22a:f324:d2f7 with SMTP id b13-20020a05600010cd00b0022af324d2f7mr3890525wrx.710.1663900845415; Thu, 22 Sep 2022 19:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663900845; cv=none; d=google.com; s=arc-20160816; b=FZFBzN1tyi95y88JhzYisbrA+QmJewRJDlV8LCgw2wZA/1ZWFRAYsQHtNopF+cacVm R/8ulNDE6/yZO9a7+wohfvAjXMOPo11hBefD0yJM0Qa3l18DTqEEp8DOOkggMsGmWMUa W6zVEIsXkuS0CSfOCF5dyBw0yOv56PsLv2W/qnWayNLFcK2kLLJ7FlYdN4QhzDCoctwG IT0+PaR8AGrqvim5+CKTDdjtXEnsqnnFSqSTuXTP19za7CQpqdMYJUUmrZLMOXaZxuXD 3N2EHC1F03l9bJkLRUdVAZ92llnCB5hZv5YUlcKweJgNwBsMcDnlPpMC9pochDIY//bJ CF+A== 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=WSJaiB1AIZBpQrHaHvtDBCXpSExf7K7mXyr7a8pJtcUj7kD89Pjegne85z8heSww1/ bbysa/Q7qsqk4RctZJ4EEr+Q/L+y/PH9uK/hl4tQ7pfvHVhJG2S7B6De8Lyx++PmuBZ5 2zYzSzdLVvspdt7Vn5CsWrv1uTEXvJCMiIO4cv90yltu+WVW77j5bFrLaFAOGSDzWo5u mXV58hdFxUPYIDLOFPhHW/2nDLG4JACaSyHtC+ZIwKlB4KrSiSQMF+XRLYmq8/5YqvYz L4ec0Y2O2O98gsIAFWLGzbMIO9F5B7fLaWE0+1jqA5LQ6wD0UsIXoTbPMLg1hJqVMUvp UsKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBWosu23; 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 m4-20020a056000024400b0022af5c6543esi4204006wrz.802.2022.09.22.19.40.45; Thu, 22 Sep 2022 19:40:45 -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=rBWosu23; 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 2352541145; Fri, 23 Sep 2022 04:40:45 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id CF52041144 for ; Fri, 23 Sep 2022 04:40:43 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id w10so9660849pll.11 for ; Thu, 22 Sep 2022 19:40:43 -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=rBWosu23giaYfXpcQ6KaxQBMsrycfqoKcRsro/VX1McFe4GPU5TrqBSBRo6dcget8m +Uuzyl3sxl43q58egqUpvALyQGuaiHUWsiwmS4X7i7n7nGcrYHf6fhmdDkLkj+p93u81 6RxbzTqlC0vS6H2F2oK8cmQsTwFTyL4r4lSVn3mm4lekGULx4mIqq0GSUkDhEh4WMEI2 LXjYxbMxGGfrXmWHkmPZAXw7kK0CHM7XNGA184ONuO0DZG98IO82TqbmJfq4680uHqVV LPKoKPos+CW0JMWUxEzN1ZogyLreuCmgHvMVPsGfLTHcGiWkVu7mVWxj42D5crWneN7B DKJg== 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=5EHAy+piUglnPVirqXvTRYdqF2M1hmcWRhfUDsjBJ7MqxoTxmsuCNm26J403MwObyV AqnafwQMuYp0m+f598J5rfUKheWrEaDixXHFiO3yp1JBRwZHF6G0mwFlHtKIYoSTWoPR RyO+h3zcd0VKS+6TvYuLl8Ld/eyT0ozC4ku6TRZ1tkgPkrJ0IAx0H83+6NLlKuj8edWC jXW1QUZFjlPcQJ4NxlsI5f8c0GBUG7oelF6ysg/B+UHiHKiDtlmsyAsTxxXL7OUW+lW8 utjue4wdKxtZ53FtYLQSTNxJ6SuZO4haL2V9I5yTtAdoIA6dXXTRCy7lvJhyKKq8QqP+ e68A== X-Gm-Message-State: ACrzQf21uI4gxZLD/VIieGFwKgIGvMJAm+Mj2Jn6NREyxtE8axziI6xX WLg6rVjhwtA4qKDvVJqe84T7Ug== X-Received: by 2002:a17:902:d2c8:b0:178:6f5b:f905 with SMTP id n8-20020a170902d2c800b001786f5bf905mr6181567plc.2.1663900843087; Thu, 22 Sep 2022 19:40:43 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.56]) by smtp.gmail.com with ESMTPSA id t5-20020a625f05000000b0053e8940c4absm5075011pfb.209.2022.09.22.19.40.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2022 19:40:42 -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 v2 1/5] test/crypto: add cryptodev_uadk_autotest Date: Fri, 23 Sep 2022 10:40:19 +0800 Message-Id: <20220923024023.15849-2-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220923024023.15849-1-zhangfei.gao@linaro.org> References: <20220923024023.15849-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 {