From patchwork Sat Oct 8 08:37:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 613388 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp765538pvb; Sat, 8 Oct 2022 01:39:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5F9SeNchxymGEtPNAUezIPoe107W3mqBb/yMnTI9RvIvpeE06h3H8W4TOIVaKpxv7gSQrr X-Received: by 2002:a05:600c:1e23:b0:3c0:2cb4:49cd with SMTP id ay35-20020a05600c1e2300b003c02cb449cdmr9773090wmb.95.1665218362695; Sat, 08 Oct 2022 01:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665218362; cv=none; d=google.com; s=arc-20160816; b=pAgH/ohtxPLo1vRwUfC2mJDUnV/mkeA5Grjp8zwFlJdVyuvaoaRB2vYOnXdVRsahmw DMR+0c9ekgqlLEHtJRHtN3psjRbpD94kY15g13Lbpc0wShNFo7Vj3ekiwwbwSA2SHlhk mKREHCVEhXvdOxOyJARfblGu46HUmQzCioRGq0q3US5mom1IRe95VEUfmg8CGL8Jx1yz mzHBr9IfWvkPBIlmkwi+/SUgSy0YYZNhGRkyMEwYXVRylJGrTj5bSdbMVEposX8xhz5p CIPMNSBL8Ov/u4lKeridZbBUmIQoj3cmJmc+hbl+sLRkmOJLERdIzeMqJbXxRTgUSmza tkjg== 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=NGgEguX7Mtjijsimpe3NMmFwMd5aUUtP+VoOzluPcsg=; b=AEUonsZLS7Ni/0VKPPGD4SJs4luIV7x/xmYdpaHpwSWAbjItRkabdT4z7pPIYjogfF 0xYtCmrCeJyXP9vFljtoUl0v6WkmHTQ8R+Ej7LIkxcofcQg01+qGg+BMihbSPO1vZbgm RDyVzCJ4gyvRbUb6ExzGywModasJ9ZkDujzeIQR1zGlRR1P5WLo6mIO9H+FYi1PNqdjx t3VfXzrVeLs9lqlz8CTBptLXqVEcWBaJXNKN+455dP0QvoDXg/gs3APfUqTLgLD5j+2Y QOd9M2NRsXVgA/YErYdPcbE70ZDzfRWukL6UU34onXY6aIH7NEHcQZaqaPo9TqMQVQd4 eRvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Anb4jgVD; 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 22-20020a05600c231600b003a83a1a9ddfsi3137989wmo.141.2022.10.08.01.39.22; Sat, 08 Oct 2022 01:39:22 -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=Anb4jgVD; 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 51FBC42BB6; Sat, 8 Oct 2022 10:39:12 +0200 (CEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id D932842BAD for ; Sat, 8 Oct 2022 10:39:11 +0200 (CEST) Received: by mail-pj1-f51.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so9138715pjq.3 for ; Sat, 08 Oct 2022 01:39:11 -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=NGgEguX7Mtjijsimpe3NMmFwMd5aUUtP+VoOzluPcsg=; b=Anb4jgVDuR0JIPq37A0U+ndAPPZCz+cHCOH49xNqlfr3p/OmmAvwhWbUxD+jh8c/Ud 2UwWPGfrv7flXGcK+kIV7tJoGLuYcmfuHcUNQSVjVMSbuwomIsqzmzLp8vSAJjk0Erv+ aWRImyl5Sfs9iThtLjvHLfzy+QL9bK/eIP5yPy3CvHENjmbaXP/+xL5X5pmLgGTIxlPQ lnh7mVz022k+qEeRWNW9x8Yjncpj5CC8vmrMrichlFtvkoBqJp0PMAd467+3vy+VB4Cp /a7BVDxbPqqQv82wi1D2X7GV1tftEvXzv9BrmWLm+C3iliRHQ/O+6h2MVp8ivrhcuAq3 NsHQ== 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=NGgEguX7Mtjijsimpe3NMmFwMd5aUUtP+VoOzluPcsg=; b=mIolDmCmrssAcp9KXJMXhf84sws5A9Bz5RfDqtc6mR5nivYBM6SrB2bvM4EuLhp/T9 NCFeXSnrSkr3p6upT4DsrVU/cPUAZWkKsvWslDrufywM9xiKGDKEpLHfVqPvflVNXs+n +eBAgNPotK2Oz+dobdepi7/cZo2tdNDkqMT6ECjBAhWWz9rrXWbHBK8ziMP4/rYWvqh1 +xhnxBDojPHxDFEs+GVUIpOZuIgqWF7IydHeObYR8uuXm4+Kf8k1VtE8wKeI75V7T/td cLVgAuKFFuThdHcir9n3sxqnnJP0Mi9z/1/uIBej6/0NdMXnBdQwCfA8nhS2mZlqJwlJ DKlA== X-Gm-Message-State: ACrzQf3FppGWPuyaRRhGnyIB5ppKCQAPcRyVig3Memflgptog+Biw4UR BTN+ZeLAhXtHnL5NIlK9MAouQg== X-Received: by 2002:a17:902:dad2:b0:17f:8290:fce0 with SMTP id q18-20020a170902dad200b0017f8290fce0mr8696936plx.168.1665218351161; Sat, 08 Oct 2022 01:39:11 -0700 (PDT) Received: from localhost.localdomain ([194.5.48.65]) by smtp.gmail.com with ESMTPSA id n1-20020a17090a2bc100b0020a0571b354sm2644371pje.57.2022.10.08.01.39.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Oct 2022 01:39:10 -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 resend v3 6/6] test/crypto: add cryptodev_uadk_autotest Date: Sat, 8 Oct 2022 16:37:47 +0800 Message-Id: <20221008083747.6559-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221008083747.6559-1-zhangfei.gao@linaro.org> References: <20221008083747.6559-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 c6d47a035e..3449d41cf6 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16427,6 +16427,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) { @@ -16770,6 +16776,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 {