From patchwork Mon Oct 24 13:44:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 617869 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2735155pvb; Mon, 24 Oct 2022 06:51:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RG28MD+9dp098qyRn7Kkvsyt0txUkf8RBA514brSN1AZY7TOhdioYxaIVav9fCHAqYFLw X-Received: by 2002:a05:600c:3d8a:b0:3c6:f241:cb36 with SMTP id bi10-20020a05600c3d8a00b003c6f241cb36mr22286867wmb.115.1666619486402; Mon, 24 Oct 2022 06:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666619486; cv=none; d=google.com; s=arc-20160816; b=G70QzncHz54V6v5KP7LS4aMu7OCyGVJbHGnjPI+aBaqwi0K/8Tu5lmMIvZh527Do4j EdR/0UWv0cHceosl/v/zljmLYBcqp+oAZRrsYuwcCRiGamNGsgs/sK/YVzAbPSfQnT+m 7XFl8ishd9CaUVQY1hgrrxUFJ92HdA1wBMjJ8mLRh7uNuaO5Wd6s3W6p2+O350MAtfaV SWm2bePnX/2Koc4S25HQbLTf5LR+n9JPPi5yn42fkwqCQXsn7xG308qd65xHTLskhDBW h9H2RY1sdCv/ooYNdhLvlzOYL1zLMMTNHEmXCzjxtgin+fsQw789LOn4dteXbTTBme/K H/gg== 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=yR438wvdNZ4K9xXMmYcryDhugEVT5AIuP9E3sSuXiE0=; b=EPwKBsiwLQvEQQCKWaF+sHnmwvi9kKISbpDG0l3GlIgPgz3AbOLwkv9Ue4P/PUbivq bcMma4ajudx8ZEVW2karCVhN2jXYWMdpkSDAAx5OGNaDvTvNXrX4auSq/3ahSCz8cfXa qEH/b7Ll2fGp5LNXx6pYvWPGKXb4MGohxxRVlmGkW0FtG9W2KCP7bP5ArHrTDyrnxjOG uWeLpzFlS8UjmPc5yRTbtb9kFptuTBTdP+o1PLbNlBK56LFl736M9AfbgSPTRHeFdbZ7 mMiKYGuo+AjtZGXwCEKGKSny2lkL6+oUWO8f5Bek7zBW/q0tsLuXthKWu/ZibjgkEZjm 6CaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+o6lbji; 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 h8-20020a5d5488000000b0022f2d1e7f71si4233395wrv.717.2022.10.24.06.51.26; Mon, 24 Oct 2022 06:51:26 -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=v+o6lbji; 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 33AE342BD0; Mon, 24 Oct 2022 15:50:59 +0200 (CEST) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mails.dpdk.org (Postfix) with ESMTP id C670842BB4 for ; Mon, 24 Oct 2022 15:50:53 +0200 (CEST) Received: by mail-wr1-f45.google.com with SMTP id v1so16344168wrt.11 for ; Mon, 24 Oct 2022 06:50:53 -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=yR438wvdNZ4K9xXMmYcryDhugEVT5AIuP9E3sSuXiE0=; b=v+o6lbjiCZp7GYRxj/YENI4QQgmbTEIdFgak/w5yBscUIASDobpX9hqzKQrw7r/wB7 ieKi9uoefR1bvnRjOFalEjAueihbnhTzxtmj+4mMnfQ5ee3o1wOjQDP9cnTl1qiho7F/ s/OayOwKKTM4tBSOy83KRjhed15BpIGCnzxa+RFplH/VGypdPHibO9VCOL3kkJhrW2BT wF+KOKG7ZdjWh9BxLuaSHDMI++ZZUVlpAc6qLNWZap5q6HAT62WePuwCkXrtt73l3H9I Ry1J2YVfKe8Mg7CF3mFeXHMKjY6Lsr5lsOxBkHu8I5ykfZ4YYirVvV955pXs/iiW4EIl /oVQ== 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=yR438wvdNZ4K9xXMmYcryDhugEVT5AIuP9E3sSuXiE0=; b=AYJ99XCLUpX293pViA+fZcgjHzj/kd+JxAfwWizRMzcqWPFZiwKGS15E+g4Wqz7VAT ADNOphTo7BIGXb9f4Le/9Zg5N1YH0dlgQOXbh65kwUvE4el5a+bKNW/6kow2FwAhg37D t0xJaBdA7AhGP7gOn3i3xjt6SkyCoH0H7egcP6ZtDaLDSc7FBMzPk+EVNjx1fZ4gk82b yAT96Xftq/DZmXwVY7wuvIIQv/Dy8pEWreC+DgUU1tCDAYjDA5ei0jDiobbIq7fwEd+x xEb/sG0XthecvtjL2hiT1Z9KhMLSc/Hjiz/ppDTiq+QPz2wgw2Gx9WBB9T4m5gX601Ff 3Fzg== X-Gm-Message-State: ACrzQf0f+1oRZ4ULKiLVSyBmFW+zUj8AQBmLE9Eur3YxBahSR0Y2yv+g D1P5rVozmemPzQd8+5uz4xTN9A== X-Received: by 2002:a05:6000:18ac:b0:232:c7c1:314f with SMTP id b12-20020a05600018ac00b00232c7c1314fmr20582503wri.109.1666619453579; Mon, 24 Oct 2022 06:50:53 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id t8-20020a0560001a4800b00236644228cfsm5764108wry.43.2022.10.24.06.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 06:50:53 -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 resend v5 6/6] test/crypto: add cryptodev_uadk_autotest Date: Mon, 24 Oct 2022 21:44:09 +0800 Message-Id: <20221024134409.1896776-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221024134409.1896776-1-zhangfei.gao@linaro.org> References: <20221024134409.1896776-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 c2b33686ed..183e24f150 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16467,6 +16467,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) { @@ -16810,6 +16816,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 {