From patchwork Mon Jun 20 12:35:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 583162 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp645981mab; Mon, 20 Jun 2022 05:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR+LM0CaeevaLA2ii7ttlk2apY+JyVBubrgN56SzyTqfwzmzXBpDER9JjuiBS6c6ZBrk7S X-Received: by 2002:a05:600c:3d8d:b0:39c:5232:107a with SMTP id bi13-20020a05600c3d8d00b0039c5232107amr35143636wmb.191.1655728567404; Mon, 20 Jun 2022 05:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655728567; cv=none; d=google.com; s=arc-20160816; b=UIMxn2WcaS/dthYQrE9rfvgue8eDFKmskd0/N81fS7QbKDDVN5D00UNy0USWTzxf2d JTnBJXjRCdwC0oa0f+0++0PwpzHqDUCwoOmqqwsO0nIw/XCV0rM+KlDNwLpPxNeXQJ1F wYLwjMS83hwpu3tMgJclGPm9UtqcthpvljbiQ5oyILGtbQ4XKUT1vZXsdWjxeUizDKu4 Qk/U+nqr9VK2/sa2bnKTeDk8yku6NZ7PdN3ANBKdWxLoepLCVv+TRLAyLpHsvOOyNt1M UVZb9IdqW9Jc+3pl4NkHtmeVPfWFUu+2JTkh3pEHxD+53gh54A9QFshGzu55ZPRd3gJV 23+w== 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=0B4zTLZK49iqRoprF6qAADvlcvleOV0Nayxg0AidLGc=; b=EQkRLjr+3eaY2KEjTogLvUc3TDZODkJryOaIYy0y9i2FWWRQQlwXahi5qruXHggH3f zMjpneQ6u1NkOgvizwpmi1WaOWbzmeqQEKnBLv4pwFHPobdFmqUHWlj4czipSAHnAQiW Y1uTxEEDYIDFH880qtA/SrxQNG72cZnQluDxbsFWj6jYctK9arikjSy/UKvD62FBM3ys ZgekQrlh8/FRGXmgDBOPwKLWmXzyP090gOF8i0EJyPqH28LsWrLpecNpB0+qygldhLAC cISvc0tOQeqW4RnxzRxwhoudQGLn17LQNx0y1KoV+5GqnS3wU5dbz+j2FkU6N3B/R80K kBOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rq54jDSt; 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 e12-20020a056000178c00b00217634d0605si15423944wrg.463.2022.06.20.05.36.07; Mon, 20 Jun 2022 05:36:07 -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=Rq54jDSt; 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 F28F74281B; Mon, 20 Jun 2022 14:36:01 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id B4F1E4281E for ; Mon, 20 Jun 2022 14:35:59 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id o18so2560192plg.2 for ; Mon, 20 Jun 2022 05:35:59 -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=0B4zTLZK49iqRoprF6qAADvlcvleOV0Nayxg0AidLGc=; b=Rq54jDSteGNjmww2k/dfAeWnkSCJz6ttcGWzEcNU65Pqja/lTzsuZwyfA/VtUwYHOA j52EJPo7Acmrr/vlNxubY7LiPUWjDTycvSnj71ABlDwgPaN2XjKPz0YCSydX6oPvDaqC xWcs4PSf/5hrwtP0RabhjHbVvtpL0Q17FAgVnBYdh6wC3wpvHYig5e5bZ54tti6uOb7W pidXFbUe4QiwdkzjWQ/dBzy66BtdytE0dwAG4F6RYs6Y114g04sEAe1u7n2W8wJqJsmM ea+SdaPEF4iHsWaA8WqBYlHd9qYsI45Lq2IIIHflIH28A4IVC2Xj1W7zWaygOwant3/O G62A== 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=0B4zTLZK49iqRoprF6qAADvlcvleOV0Nayxg0AidLGc=; b=DmHdkh48dbjFHeK5s/DTJ/6VFZrPGR0o94WqQSOEfJZiF0H5cTKz+3sRJCxwORNeoI PGtsSU5+FU1e15Tr9sJQUfC/EtFMtG3WMeGM7LcXb+GQ+eSEg2P98PWbXxNhXCC0AVM6 3r3Y5YbuAM6IKCtjQl4yfvzM0yfGXMVCesPoW8L3/5d7GyohE2m69EeysYWHpSuZlsPJ MjPa5Svqb9T2ZFnpt9jwP/8DF27zWBJxu2o4Rslt+glScLmv9G7TCMFSDwlFLJH66z3A cgem1Cojvb58IhVsXUienHEYCop4J6YHXcq6LUUlCHW1Ivr9FZftEmnkknTR/uXj74Nu cdjg== X-Gm-Message-State: AJIora/sxcjYQLgikYQCxcmCKkBrR9/24GrtBYj9fJzlotN0i7DUkipH OfOHR9zdCOhgrwx8dcmhTi8uPQ== X-Received: by 2002:a17:902:d583:b0:16a:29de:9dfb with SMTP id k3-20020a170902d58300b0016a29de9dfbmr3337773plh.44.1655728559008; Mon, 20 Jun 2022 05:35:59 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.181]) by smtp.gmail.com with ESMTPSA id g10-20020a63be4a000000b0040c52ff0ba9sm6768967pgo.37.2022.06.20.05.35.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2022 05:35:58 -0700 (PDT) From: Zhangfei Gao To: Akhil Goyal , Declan Doherty , Fan Zhang , Ashish Gupta , Ray Kinsella Cc: dev@dpdk.org, Zhangfei Gao Subject: [PATCH 2/3] test/crypto: add cryptodev_uadk_autotest Date: Mon, 20 Jun 2022 20:35:43 +0800 Message-Id: <20220620123544.3168-3-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620123544.3168-1-zhangfei.gao@linaro.org> References: <20220620123544.3168-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 2766e0cc10..1aaadcc474 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -16307,6 +16307,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) { @@ -16650,6 +16656,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 {