From patchwork Thu Oct 27 03:25:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 619175 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp21724pvb; Wed, 26 Oct 2022 20:32:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GYanx/Oq3ObKOcefNWG42b252Ot2jOmS67W/eAQBimUSkNCFsRKh2OMerZf3YbX49TAac X-Received: by 2002:adf:df03:0:b0:236:78cb:b6e5 with SMTP id y3-20020adfdf03000000b0023678cbb6e5mr10399082wrl.269.1666841555061; Wed, 26 Oct 2022 20:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666841555; cv=none; d=google.com; s=arc-20160816; b=bx3cOqF48hF1zWB8S0UPeEbArugC8ojfyd2zlZj8XnivZSNoMw4ClWdfizkwyDePHJ KS3ExJ05JiThX3RGszusfpngMKA922GZ7+YRfLQSDXGRQZtaE5GCNM0Ssvu5TgY/UIEf 4vwW/p+MPKBGRZD3n+9ANWrrwOJNr3cCUbo1lDoikqM6dnNdBzKzNHxJ1LFTmBuA8v75 nXRMhAYyuYdrYLYhqTCnuYwH676kAAbZCcQ9ynejFVh54ym7JN4RuVxUQUPAb7Q69bZO s9JGLw28BS5Vy7l20Kn/Zi8rGHFx+sWTWsQ9N7CAOEMEVYS8aThDpMR3zc9H4UWo5NM/ jIOw== 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=r69IIvt3b4H3Hr/h3ff5hoFFTFm5Z5jrxvX7kFzqOi4=; b=HgQJ4UWv9ep/PcfNYmgC+hnCwMpXKJqWRuwz/q6+DJ2COg6f8tDayQXIh49hUorkja nYBa3Kmgk+yO9gUu3um361+fWl7ZK5maPP+wLH4t6gjLPPLw+Zabhia9dmigeDe9J4q+ 4vcgULsyX/mpL/Dg59DvBuMt2MP8vHXcdyOGspiU4Bc9y9LWPD+05wmwDJMOddqLeP/U VX4CTdnsePjdbjtAWC3izF3N6rgBiGvlDrbkUu0lbFwUhuCwosV0PkpNdEn3ghdedTwC DwFD6h0PGIAwwOeLDjORML4BgFx/w9/Gz0QozE817pib1lPbuMwMTubmP6f7LxdQtMcK evPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrMfDtEh; 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 o28-20020a05600c511c00b003b49a00935csi112253wms.69.2022.10.26.20.32.34; Wed, 26 Oct 2022 20:32:35 -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=FrMfDtEh; 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 5A83042BC4; Thu, 27 Oct 2022 05:32:07 +0200 (CEST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mails.dpdk.org (Postfix) with ESMTP id D1E9A42B91 for ; Thu, 27 Oct 2022 05:32:01 +0200 (CEST) Received: by mail-wm1-f49.google.com with SMTP id t4so41714wmj.5 for ; Wed, 26 Oct 2022 20:32:01 -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=r69IIvt3b4H3Hr/h3ff5hoFFTFm5Z5jrxvX7kFzqOi4=; b=FrMfDtEhw4pTgK+gejhqOfRQcw4RmEEyFakJXLwJLsiKuFUi+vg2Kq0dgnagVA1k8k epULKA8pzrmqM+Cl9DzaCcBFCPejilwBJ1xiFDqI+fvZjTA3amaqqO2oxONd8K3tAPth UvYKducFqT6Fx9nAKJJMmV7xvL3hfKKYGQ2RWinEe/+5Z1hfg42pV0+HD8MTIN63heJN E3a77s43y/GlP0DnxeKiPIIJH6opwLytFd2f7ZOADb6DowWpk1RJx9SmGrVktMVzuas5 jL6QSpV9ZZ2eUv0r0hP1QLmFBSBoI7a3g/sTvBJQXL/MondLuNR1QWdhN+algp3nB4KZ mKDg== 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=r69IIvt3b4H3Hr/h3ff5hoFFTFm5Z5jrxvX7kFzqOi4=; b=rbNjQYnfX4hFNpn5xcYHTAQHrTrYSn+SYDISLWsxBGJJrVqo3Wf7Pcwo0sYOn10dai Dd5qIYs+oSdyK6dUyic+0rk7osXp7/yPgm6JVc5Tvzk3AoIGFJF804CpQ2OSzikFvJ/x Bx63mzrhOmVhOx7Svpw8FThsdyznyHpFslsIattgfYa2z5NSI35BjJqbPB6w9rdrR9Nf r8AM6WNKWmVo9FXZFNuzYysanEmdPgwN8cRceYBp0kCkA+QFvfz3vzysjaeXEZaq/SGp XxqERO/YzU9+yAcFXQoA4o4Wyo3kK1LK7tMGOhaQzV4fSWrwKwaL/LEs27pCG/G+3x+f RvyA== X-Gm-Message-State: ACrzQf0pQIEHJm9sc3cBrPMEkuNF54ZFqWr7gQ5ZQK6654al4lGTu8HK 0fQbPQUH1oyStnPwUQ7l148/wg== X-Received: by 2002:a05:600c:3849:b0:3cf:4d99:fd1f with SMTP id s9-20020a05600c384900b003cf4d99fd1fmr3267688wmr.128.1666841521614; Wed, 26 Oct 2022 20:32:01 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id c12-20020a05600c0a4c00b003c83465ccbfsm3339220wmq.35.2022.10.26.20.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 20:32:01 -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 v7 6/6] test/crypto: support uadk PMD Date: Thu, 27 Oct 2022 11:25:05 +0800 Message-Id: <20221027032505.1948351-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027032505.1948351-1-zhangfei.gao@linaro.org> References: <20221027032505.1948351-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/meson.build | 1 + app/test/test_cryptodev.c | 7 +++++++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/uadk.rst | 3 +++ 4 files changed, 12 insertions(+) diff --git a/app/test/meson.build b/app/test/meson.build index 396b133959..f34d19e3c3 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -312,6 +312,7 @@ driver_test_names = [ 'cryptodev_sw_mvsam_autotest', 'cryptodev_sw_snow3g_autotest', 'cryptodev_sw_zuc_autotest', + 'cryptodev_uadk_autotest', 'dmadev_autotest', 'rawdev_autotest', ] diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 43fcef7e73..101a68fb70 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16538,6 +16538,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) { @@ -16881,6 +16887,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 { diff --git a/doc/guides/cryptodevs/uadk.rst b/doc/guides/cryptodevs/uadk.rst index 19bb461e72..c9508ecd9e 100644 --- a/doc/guides/cryptodevs/uadk.rst +++ b/doc/guides/cryptodevs/uadk.rst @@ -88,6 +88,9 @@ Test steps $ mount -t hugetlbfs none /mnt/huge_2mb -o pagesize=2MB 5. Run test app + $ sudo dpdk-test --vdev=crypto_uadk --log-level=6 + RTE>>cryptodev_uadk_autotest + RTE>>quit [1] https://github.com/Linaro/uadk