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 346E3A04BA; Wed, 7 Oct 2020 18:50:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A23C91BF35; Wed, 7 Oct 2020 18:46:20 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 5231D1BC88 for ; Wed, 7 Oct 2020 18:46:17 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id x22so1618485pfo.12 for ; Wed, 07 Oct 2020 09:46:17 -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=Ns0JOaWXCDdjEDHC1obmWfKIObIvH8odbcaGoJel0XY=; b=b4LT/Q+GGQZCVReafLsLdiKtsGoJxDTK+FB1ZEGteUDrLzqF/aQrMIbqHlJIyoTiWZ y9tYtqC8NWCmONI9VZKgF+fY+jbTkJkLwLchtUjZsTf/pudt/shSjn63BE9BDpU/bG/D lKjco32A5mCu4VjrUqKV/GZMN1p3FxD9eSS78= 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=Ns0JOaWXCDdjEDHC1obmWfKIObIvH8odbcaGoJel0XY=; b=S5yR4hzZVhbvpLabyK4OWGnJbjL+2CVBM/4jj5+cUgI7mkqNSOz6WlqT+YGFa6aSoo gOnpJvhQhyxsD8Bx6P24o1+U454t7NJyXisk0D3VInCB8LPkXYOKnSR/mcCRy5BRVyLs IS+gq0p5Ds+Vl21hDlQA9c6VGhV6RVskZFDvbLxSMrNyVKP3aH/ju53goT6PRvj3Wyx+ WvmuUk4vToWBEVpcanqHWNrsu2LYc8Zg9yjByDPNGg7c5O6HaS6Sl9sijRHJ3qvNxbp8 3Pecu2aBvqN9XDLuwm8vhtWkJnseK9fcrKrkeuQEXm+6xynt+lL29Hsdo8vaZLkKQ27T imUA== X-Gm-Message-State: AOAM530q/1pJKhg5UdKZUE03TCIpAhgjLRpN+FzRwKWWGjC0qsqHpGQz L07f43o58KL4fFIIMV4t2NJAKIeGIFuj9yKuebr8nY/wGR9iD4/eLw3KepDTjgYcB7JyMbcH4qF +iUZwo1QXhEpgc4sFXBDQszFU9n3/gAfmPZOjRBKYV263NuNYA4Z7pjbWQvVK X-Google-Smtp-Source: ABdhPJwevsw4OHOXWFsjnFrU7m7T8iirkjxxB/S3Ox6o/ZhkBJZhIom5u2deuhuCpNpqfzcW3Lj8vQ== X-Received: by 2002:a62:d418:0:b029:152:8812:8e47 with SMTP id a24-20020a62d4180000b029015288128e47mr3536932pfh.40.1602089175049; Wed, 07 Oct 2020 09:46:15 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id g126sm3858647pfb.32.2020.10.07.09.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 09:46:14 -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:15:39 +0530 Message-Id: <20201007164539.45097-9-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201007164539.45097-1-vikas.gupta@broadcom.com> References: <20201005162658.12416-1-vikas.gupta@broadcom.com> <20201007164539.45097-1-vikas.gupta@broadcom.com> Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH v4 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