From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DE2BCA04BA; Wed, 7 Oct 2020 19:23:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F2C61BC82; Wed, 7 Oct 2020 19:19:38 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 4C3C01BBDB for ; Wed, 7 Oct 2020 19:19:33 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id o9so1317862plx.10 for ; Wed, 07 Oct 2020 10:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=380Y1wPnifbTRdHThnk8TICXkboZXDy6rtb+wFGVk+8=; b=YPiNBNpFDzlzUBR8pA/hwwRTp8IxRQedFj8n7nqtBCrXwBNFGesLnq6BPrcncRT7l6 fvYb5gekiXxA1nzeIDIqGeA2YjpOJpTBeSYTMElhf0LZBPHr9mJL6YUaqASOcn6tca6D JxlTuTLTojk7aX6E/I2BZQwP1U9ct68ZpmcDI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=380Y1wPnifbTRdHThnk8TICXkboZXDy6rtb+wFGVk+8=; b=lh78DE3FkAwi+twzt5e3VFeh7MeOptlmjmAQ3htYqZjM+RctLWsivX/hXXJGEOsIr/ ZPKGQVpdBRuYAr4fGrq85lbcM8m+9Yu+Vtrrac3NY9yRPfATO8B1oTSQFMMI88QpIbze WJQGRR1zASamYkUmGIOSgp/qVwZSYFDVlvxMn3JWOZqa7EHH7o0OnJrlmTowyb5mqzRb 9B1B5s/Ev/aakg7X8M6n+jZUnCbBZN5TSX3CsvEtC6vuAaCEVQga4Mp8KAJja5+jdXhI Kzuru8dl+ai7qOYBrWhO0G+yAA74biTDx4zrAnhL+FA7ZxsmTl9IVALw1376gVN+3795 jpEA== X-Gm-Message-State: AOAM530hF6sAdLrgRYWekgEfNMpM+wZj1g1n5q20Doej8k/bUt9cyGE8 QlMhoaExI8K8yFEyJHuj4EzatJGHgUYOJEOro7QIv/C0Wa3KjnYvVETpYjT9nzN7EXWOoqkpvRb 1isn+JXK5IOga3g4lrWGLkVlDrNGjVPLZlaDHMOrBU/W1c3jYASYTbfE2uH7W X-Google-Smtp-Source: ABdhPJzpAfUb/Xojdl2Mf630teExMkoq5zipiOQbAyW+btyeUw5lvDxK+/C8JP3OLN+eSejZsEeWXQ== X-Received: by 2002:a17:90a:7f8c:: with SMTP id m12mr3917694pjl.22.1602091170904; Wed, 07 Oct 2020 10:19:30 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id t13sm3846367pfc.1.2020.10.07.10.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 10:19:30 -0700 (PDT) From: Vikas Gupta To: dev@dpdk.org, akhil.goyal@nxp.com Cc: vikram.prakash@broadcom.com, Vikas Gupta , Raveendra Padasalagi Date: Wed, 7 Oct 2020 22:49:00 +0530 Message-Id: <20201007171900.605-9-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201007171900.605-1-vikas.gupta@broadcom.com> References: <20201007164539.45097-1-vikas.gupta@broadcom.com> <20201007171900.605-1-vikas.gupta@broadcom.com> Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH v5 8/8] crypto/bcmfs: add crypto pmd into cryptodev test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add global test suite for bcmfs crypto pmd Signed-off-by: Vikas Gupta Signed-off-by: Raveendra Padasalagi Reviewed-by: Ajit Khaparde --- app/test/test_cryptodev.c | 17 +++++++++++++++++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/bcmfs.rst | 11 +++++++++++ 3 files changed, 29 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 70bf6fe2c1..9157115ab3 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -13041,6 +13041,22 @@ test_cryptodev_nitrox(void) return unit_test_suite_runner(&cryptodev_nitrox_testsuite); } +static int +test_cryptodev_bcmfs(void) +{ + gbl_driver_id = rte_cryptodev_driver_id_get( + RTE_STR(CRYPTODEV_NAME_BCMFS_PMD)); + + if (gbl_driver_id == -1) { + RTE_LOG(ERR, USER1, "BCMFS PMD must be loaded. Check if " + "CONFIG_RTE_LIBRTE_PMD_BCMFS is enabled " + "in config file to run this testsuite.\n"); + return TEST_FAILED; + } + + return unit_test_suite_runner(&cryptodev_testsuite); +} + REGISTER_TEST_COMMAND(cryptodev_qat_autotest, test_cryptodev_qat); REGISTER_TEST_COMMAND(cryptodev_aesni_mb_autotest, test_cryptodev_aesni_mb); REGISTER_TEST_COMMAND(cryptodev_cpu_aesni_mb_autotest, @@ -13063,3 +13079,4 @@ REGISTER_TEST_COMMAND(cryptodev_octeontx_autotest, test_cryptodev_octeontx); REGISTER_TEST_COMMAND(cryptodev_octeontx2_autotest, test_cryptodev_octeontx2); REGISTER_TEST_COMMAND(cryptodev_caam_jr_autotest, test_cryptodev_caam_jr); REGISTER_TEST_COMMAND(cryptodev_nitrox_autotest, test_cryptodev_nitrox); +REGISTER_TEST_COMMAND(cryptodev_bcmfs_autotest, test_cryptodev_bcmfs); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index 41542e0552..c58126368c 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -70,6 +70,7 @@ #define CRYPTODEV_NAME_OCTEONTX2_PMD crypto_octeontx2 #define CRYPTODEV_NAME_CAAM_JR_PMD crypto_caam_jr #define CRYPTODEV_NAME_NITROX_PMD crypto_nitrox_sym +#define CRYPTODEV_NAME_BCMFS_PMD crypto_bcmfs /** * Write (spread) data from buffer to mbuf data diff --git a/doc/guides/cryptodevs/bcmfs.rst b/doc/guides/cryptodevs/bcmfs.rst index f7e15f4cfb..5a7eb23c0f 100644 --- a/doc/guides/cryptodevs/bcmfs.rst +++ b/doc/guides/cryptodevs/bcmfs.rst @@ -96,3 +96,14 @@ Limitations * Only supports the session-oriented API implementation (session-less APIs are not supported). * CCM is not supported on Broadcom`s SoCs having FlexSparc4 unit. + +Testing +------- + +The symmetric crypto operations on BCMFS crypto PMD may be verified by running the test +application: + +.. code-block:: console + + ./test + RTE>>cryptodev_bcmfs_autotest -- 2.17.1