From patchwork Fri May 20 11:31:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 575397 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:c603:0:0:0:0 with SMTP id jv3csp1188952mab; Mon, 23 May 2022 01:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc/STnTG3y+2I8rLVLNXr6rg8sYCFG2ewY1Eb6xP6G19fQTCnu0v4WcyTY0V9JVMiPYoBm X-Received: by 2002:a7b:c4ca:0:b0:397:3bac:9b2a with SMTP id g10-20020a7bc4ca000000b003973bac9b2amr12479651wmk.154.1653294185868; Mon, 23 May 2022 01:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653294185; cv=none; d=google.com; s=arc-20160816; b=dx/JCsSuFsieBa5bQORGFN5MSzbp6RL95N2oYi//U5JCZYSNKAJkkMN11aV8qFhICB 2Vcfg9CbOw/wrjV0R9VqETGmPNJesZZ3VtpLTBkES5Wx9AFo9X6rDvGcaKYQaIWSPvan F2KhSGBGeF/7hi4H/VpkqXiSkBXsYirkxVYVctAniFopf32uAeHH6FyThiIymYVSZ4yF TzH7iSCjJZJyh9x0EZ92j/tL+0yqx0v5xVM23B5RCSLBl2qDwzmMBCrfnkQcc4U38KTR u4u3Tw7JvYmR0QOHISQqLJjJpwbLmOTgNosQ2ZaFO428y1s4DcuJ1jaxGStewaht0/pS h+xg== 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=Py/i2YMGI+FkIjuIMjkwfCz+4Oqv7RM/xBZl+Yf2/n4=; b=hFzi8Ges2vigrwHXgLrGw5mPSkyJTBBGLa7iSMD/zrDqVLwSm1uHT+0D4zp6d9aWBx rlGwCJDWiCEyEFaLVInLuR/3efnxQ5EKJTlGzBFMYimUzDBUI0VWODsQV0uKnKjAWiTZ 0nBkiaQfIlbJqo6qk2lX5ahLouFd6uVlge3Qd9O2udo7lF5KzCglWeMn9NlDlRxqvmu9 KJxO3ZYbBha11PNomOTQr/g7Ut79+esaRKajV5V0gSoX/NXjai5nSwaQtc4ZlFY/pbWX LkZxzaYwf2tpojDVLtJfEPwJ2h+ZcpEurtyUKJ/TINaZQraUeiGb2z38dAw7YJhY8sRY G68w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HraNN7i/"; 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 s3-20020adfdb03000000b0020d0bfcc22dsi8992664wri.87.2022.05.23.01.23.05; Mon, 23 May 2022 01:23:05 -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="HraNN7i/"; 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 B7CB7427F0; Mon, 23 May 2022 10:22:56 +0200 (CEST) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mails.dpdk.org (Postfix) with ESMTP id 2CD1740222 for ; Fri, 20 May 2022 13:32:08 +0200 (CEST) Received: by mail-wr1-f46.google.com with SMTP id k30so11105307wrd.5 for ; Fri, 20 May 2022 04:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Py/i2YMGI+FkIjuIMjkwfCz+4Oqv7RM/xBZl+Yf2/n4=; b=HraNN7i/lSYVob6GLomD+9JugzdNHlqwxfPqYkVYaVqyHEVYrhCsOTGbxqOKS4kWiy O1oJPEJpCRAjiseC68j9g+No0M5XLYlH6HABMqxDBK7YQtKsSi12jjKa9txcDTvH2V3W CsCo4Z3DRnryhxXekWFDm4kJrKcH7YtbvuUYK+a21Ujvc8YFqstbPMQYU1DTzaBzunaI sf8nm5hSs7gNLsCXHgiDBfgC0L4LMZTzwdActezP39HkqRRbSL1fPF9XEudKEmBnd+k2 wU8Kwv6pGQzPiZKETPGdHOo73/Nl3wuSwVbfnTN17KQqD0fqWFuiEvHypHRIv+b/xLx5 70pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Py/i2YMGI+FkIjuIMjkwfCz+4Oqv7RM/xBZl+Yf2/n4=; b=to0iTExUBHu5DwMYTI2SEBw55x0kVP2i3uDtWNbodoQo9x+dltFLkf5ObuG7I/YXhe 7jamBpFYX0L1Vg1rpaZqzHCbLg+J+WO60JQNzXuQDKTVHcJw8/4H7ksCE6TFdLTASh2v Uevrl0yAx5gv6bttyqkrYhB77IuBzkcRgP29zG24iEfaYahoPUBOf6/pCOk46MOQf2Zk nEBBSp/m+hr6ftVjCTw7WBby+CyQKJvaBvl3kR64v77As1l4VyHV23j+vOIEtIf+burS uUMacQqtmje4liQMg/Isvm9wz7xcxdKeDVzB4AMdRSg7qQtX3x3ZIn24wvT2Evz0G9H3 ffXA== X-Gm-Message-State: AOAM533rtQ8zXNwDr8+eujQ38+Pk+sUsQijtVGdeBh9qRAUG6o0QP88H KFS0vqOnCjCv50F0XCn+pyy/Lw== X-Received: by 2002:adf:f1ce:0:b0:20c:d569:d2eb with SMTP id z14-20020adff1ce000000b0020cd569d2ebmr7960643wro.440.1653046327950; Fri, 20 May 2022 04:32:07 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id m10-20020a7bca4a000000b003972e136b8asm1828080wml.15.2022.05.20.04.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 04:32:07 -0700 (PDT) From: Zhangfei Gao To: Akhil Goyal , Declan Doherty , Fan Zhang , Ashish Gupta , Ray Kinsella Cc: dev@dpdk.org, Zhangfei Gao Subject: [PATCH RFC 2/3] test/crypto: add cryptodev_uadk_autotest Date: Fri, 20 May 2022 19:31:53 +0800 Message-Id: <20220520113154.7164-3-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520113154.7164-1-zhangfei.gao@linaro.org> References: <20220520113154.7164-1-zhangfei.gao@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 23 May 2022 10:22:54 +0200 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=0000:76:00.0 --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 10b48cdadb..b413807d2b 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -15445,6 +15445,12 @@ test_cryptodev_mlx5(void) return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_MLX5_PMD)); } +static int +test_cryptodev_uadk(void) +{ + return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_UADK_PMD)); +} + static int test_cryptodev_null(void) { @@ -15722,6 +15728,7 @@ REGISTER_TEST_COMMAND(cryptodev_aesni_gcm_autotest, test_cryptodev_aesni_gcm); REGISTER_TEST_COMMAND(cryptodev_cpu_aesni_gcm_autotest, test_cryptodev_cpu_aesni_gcm); REGISTER_TEST_COMMAND(cryptodev_mlx5_autotest, test_cryptodev_mlx5); +REGISTER_TEST_COMMAND(cryptodev_uadk_autotest, test_cryptodev_uadk); REGISTER_TEST_COMMAND(cryptodev_null_autotest, test_cryptodev_null); REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_autotest, test_cryptodev_sw_snow3g); REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_autotest, test_cryptodev_sw_kasumi); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index 90c8287365..1f2a20e84e 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -75,6 +75,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 {