From patchwork Wed Oct 19 12:57: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: 616439 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp274681pvb; Wed, 19 Oct 2022 06:04:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4+iE7ljOS+dfK93Fj7x8sjaN6DKJIymNAPg4ZvY4KKQ47QZBiiPgtFd1EOYQL+bgKD14IB X-Received: by 2002:a05:6000:12ca:b0:22e:6529:a764 with SMTP id l10-20020a05600012ca00b0022e6529a764mr5163695wrx.153.1666184696398; Wed, 19 Oct 2022 06:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666184696; cv=none; d=google.com; s=arc-20160816; b=LEDUgHsCTAiUqtAS90i0xFoTLUHWZioR/eA6yvXS7sY3/WJWWMDb7ehES1r4tJj0Y7 ljHr6M4SIdITbuHDSelpM9GlHKoGJB5Vsh9jqU7NDzl7/G+6CHyot+RAJGE69TGBpXVc kS/OdC2WBnqijcMY5lDfLAKqDud/v+W+KeMJ5OTwUKaVlVEM2+L2ac5oHdHfw2YA0+d2 MLHEaOIStPk9NumzOzwwc5dfF6cGw81P1upzaYkhmYu+sMXeaDXbj9oHZv/yrRKpiqUU t/z6ET0r2Pp01tVWjcTfP6RMHqKc2QZwVJ+rIG8UHI+X9XT4itX4weJ7zxODrvwmOUQN 2ALw== 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=Zz5xij+LBOqX4PQ/OtGfGeDyDTNkmJSMzuRvuXLN2Bk=; b=YfnFfoRMa2FHgawaaAPz6E6w5uoYMwJkFlZ2dNSSIZHVeplYVeSDa5W2mUzvVRx5oh dsIGbLecEJIHpr+vauaxULartATR+E498JtxBImriTb9y5m4xtYS+OzMjB51upYBo07x NML56/QMDsQ+8d5ZENlaRFxa+8HozMaVI5VmouZd9qwFsU2x1m206MH4rJl+zihpQs3i 7DEUEVQPG0DmOzOrWO8bc1wCh4WUmdxxIJ3mReiV++8uoO9NB4HW+ngT0WIIac2gHoPh Mchs2PXLi3r96E5/8fsScFpkJVes4P0BL7c7W8GmaeVt9ijmDhDLu0ntkbfz6uMko/xD 3BsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hJFl1zxY; 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 t18-20020a5d4612000000b0022e3211c62fsi8725151wrq.123.2022.10.19.06.04.56; Wed, 19 Oct 2022 06:04:56 -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=hJFl1zxY; 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 E7F8B42BC5; Wed, 19 Oct 2022 15:04:19 +0200 (CEST) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mails.dpdk.org (Postfix) with ESMTP id 00A0B42B91 for ; Wed, 19 Oct 2022 15:04:12 +0200 (CEST) Received: by mail-wr1-f44.google.com with SMTP id n12so28845428wrp.10 for ; Wed, 19 Oct 2022 06:04:12 -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=Zz5xij+LBOqX4PQ/OtGfGeDyDTNkmJSMzuRvuXLN2Bk=; b=hJFl1zxYbI84RCidgU9NQd80SX0+qb/+bMwd/LMBSMHFAuUq7VTF3a537hQlzOh4vQ Xv84nHVy++W8r7eRimqQO4a54E5WoSXghwUtRas3twXHiCBvoAjYpiREytzOAuD9a0sX VR9v5QMk7lFL63GFMuVR8DhEmCfC3CFQ0RFo+Z5FhYuf7w1Th2VCMemCr16M7ANgvbwV e5fQ1ATrq5YsHYEg001LRnheXmzu69fVkCOuG2/qNgw+BwFQjO2dHCQMJSEa7IvxCUei r4ZJzdBITrvTV5Yl3+YiUfX4uYwWxXAKnZP1ZEeDjm5KgTRfY89jAZaz2nlbc+IDClpj ncdg== 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=Zz5xij+LBOqX4PQ/OtGfGeDyDTNkmJSMzuRvuXLN2Bk=; b=lzrDbrWpdvP2cLw7NyUHTMN+myxmfQYR0r6lU5yfy/pECMhoRlFmI+592uIXAUELG3 wq7YEG0i/L7GM/U/GSlXukF4JjOvHLxeNpxYfZS/41GCMsJVjy8vUO0WJ0v/AO4vEAqH k0M/gdkA8PotCc56h44upYGz3KA4hnUR1JoRdXCBYhgwch+r2QvR4ECq/v0iJGWJMMEQ qLA0l6tP09BouyQL+/cvb28UtXEp8zbTYrhptmKpC5yu+QQn3Kjvw6LBWuIQdn8fmKfy gOLbtE6uD7bi78I3V3RwIMA6w4hafkIqCL56X9Aa4IXyLS3kRIs0Qsdpou6weXxv093F h+sg== X-Gm-Message-State: ACrzQf2HIo+Eq31xUME2w/5dLij9aXvHyLyksmT2FjfAPhb4yz5QR0XE VtIT3nEWEkk3QoFFiwgT6HBUzA== X-Received: by 2002:adf:f04b:0:b0:22e:3a85:59bf with SMTP id t11-20020adff04b000000b0022e3a8559bfmr4873884wro.683.1666184652742; Wed, 19 Oct 2022 06:04:12 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id b7-20020adfe307000000b0022cbf4cda62sm16807051wrj.27.2022.10.19.06.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 06:04:12 -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 v4 6/6] test/crypto: add cryptodev_uadk_autotest Date: Wed, 19 Oct 2022 20:57:53 +0800 Message-Id: <20221019125753.1700071-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019125753.1700071-1-zhangfei.gao@linaro.org> References: <20221019125753.1700071-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 {