From patchwork Fri Oct 21 08:38:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 617152 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp825634pvb; Fri, 21 Oct 2022 01:45:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4krJoHWjBzDD1ABkjhTw7fjimYEjUgPxTYnBdyq+++7xme9FgYEN5GVmFWkh+MNVsQdciX X-Received: by 2002:a1c:f20e:0:b0:3c2:5062:4017 with SMTP id s14-20020a1cf20e000000b003c250624017mr32187832wmc.175.1666341922948; Fri, 21 Oct 2022 01:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666341922; cv=none; d=google.com; s=arc-20160816; b=lMbX0Ew/954CuSPHO+YhFc5SqujT8qse6RR2Wp4nUXFv3fYl3pzPWudzNwQyVghgPP xuBTgWWeqIZ9VLt69Hu4G84uY9r0FbBD8hC10xLB/BG9g80yhZvALhcyUSgxje/dhckT rDDb2cFrNRkGwWzo/rUY9B4OIOYkhDYHsQBTSj5xh6z5cC8CI+p0Bxwg88KGBHBVZkRr cv0e6BtBUI0Rlr6GB3D0IMaJTD2Td+c3yeCXBgaOTLayl05rk7CfCyhG5cmf5Q4VoNHp yDinWtLrtVZ1s+zI1Wcdeh1DNmBNRKCnUbQvY8nrxl4/cErLYP0gvXS6gJHfQFBYa6/7 Vk8g== 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=eByBQv532ew/JF3ftf+AKHFmy9mGMJvApvCUuI7Y0lu+IDl9Svt2jHojMDBhw5LnoG 2N8cNO13/mwhec7nrqP7z9T8M4+0O/BBzcfXJebNy9T7Cp8dSUSqTbfmgdSWtqkYpmdn D3dBAAWEDHnQv5l+fzfphIvS7T9oiJ2rcfeOliObqMAkJVBhxDhyadSLkH3cRrWiM8sS Ii02KimoPKsWzLt/vD/AJXB+9QyvBgNM5f++IhMELD2GgVApIAp9VIIwpBdwIm5qKu3p 4bSXFBL0hZrHb+Q/i6q7sEHrlqWcW1/+NkA/MhyX36q/fUcrP0FHkHUb6gGoWRnHTIfT UM3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TiwOEvoY; 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 n29-20020a05600c3b9d00b003ab094577b9si4078528wms.10.2022.10.21.01.45.22; Fri, 21 Oct 2022 01:45: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=TiwOEvoY; 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 BBED442C0E; Fri, 21 Oct 2022 10:44:55 +0200 (CEST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 790A042BDA for ; Fri, 21 Oct 2022 10:44:49 +0200 (CEST) Received: by mail-wm1-f53.google.com with SMTP id n16-20020a05600c4f9000b003c17bf8ddecso3674653wmq.0 for ; Fri, 21 Oct 2022 01:44:49 -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=TiwOEvoYkzGfx+QF2DsnzPzQLVZa2bfCsCSXBGvRQHBkhAaF9KttGlCC7qgWYXGpPd Tk56+x0UsbBI+N6LYTg3m5Q+gaFwwrhc464k+Eq+NevQmCAyiilyt8JCi/4tsUH4I3ZG kiEdnk//e6NQgm3ulfYdiY9WuvL9EBa1fOHtwq4ZFBDoiD2F/hfHZcKpNfm3CPmhycgo wGaRtcziZcVQcFJRm5Yh+5RI/w0a5qzXQJ5T/Yhafq9UOk920SgMB2gVuepMKh6CZrXT FIURWLtvciMbejh9H1qXbAikZsTGCPAwUSKRVPyH/qSYDkFtvOm0Nc9rMyzZa+i7E19S fJqA== 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=YyIUUy5u9dUBDxcYBZgBXwiSUVNT7nMCQCr8R4yMNIxntX0LYnS95jjNzoWYmY60O5 wE9PkOZwiANbTFFg90EerLkl6OzqMnv6rSLdFQopbh8D3qFm/j2ltSj3Tf9mIyAK6w56 KAGULgRZ7K358JcrPalHgckCsYpHjhNp4ANYEOZtJ34lI5u6HGIJhzD3/vMDKv2XUQh6 eFivf4cN5PnucUIuqXz0hlJy/8syLeJM0eHKNh6jTQVg7rKDq46vDgY+sfUAGddHMQO5 GrULL/rcl0S8qE/j9X5yJHktM1Bppy5u5l0oWvs7dBgdaQjesvNSoMFBuABik3/gGRxY nNcw== X-Gm-Message-State: ACrzQf1WuQ4x6TpXxopdu2EPra6fSVYT/GeTEzxp0pmcXWsFBsvA66wn dsBMRfh3/BOJYDbgOAusHAlRMA== X-Received: by 2002:a7b:c00d:0:b0:3b4:6331:2fc5 with SMTP id c13-20020a7bc00d000000b003b463312fc5mr32284787wmb.11.1666341889272; Fri, 21 Oct 2022 01:44:49 -0700 (PDT) Received: from localhost.localdomain ([213.146.143.36]) by smtp.gmail.com with ESMTPSA id c15-20020adfe74f000000b0022cd59331b2sm17755453wrn.95.2022.10.21.01.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 01:44:48 -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 v5 6/6] test/crypto: add cryptodev_uadk_autotest Date: Fri, 21 Oct 2022 16:38:18 +0800 Message-Id: <20221021083818.1821116-7-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221021083818.1821116-1-zhangfei.gao@linaro.org> References: <20221021083818.1821116-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 {