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 ABCC8A04B1; Mon, 5 Oct 2020 18:30:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68DB11BC1C; Mon, 5 Oct 2020 18:27:35 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 7C1071BBD2 for ; Mon, 5 Oct 2020 18:27:33 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id i3so68005pjz.4 for ; Mon, 05 Oct 2020 09:27: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=tV0PoFI6eFwewpXj5PjimMEZUKAPiebXduIPBKG96hw=; b=CJ1Y9V6/r7rfgDpbr/961eg6DBVrMym2fNqhdvulhoWW0CLATQoUUrahb5AirEKd9p ly16BKBlVofaj56rsf7Yd399xnapim2Wsd9O7SVZxtCvheMAXO3TaM+nZzD3ZA3XXrv9 dnhlfG70NGCak22Pcj5wFv+LzCCNrhwZvzFMY= 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=tV0PoFI6eFwewpXj5PjimMEZUKAPiebXduIPBKG96hw=; b=UYl5x09HPAK+U09O09HtakWm6QKMm39LGIUKIEI39Fymhx/3fkSDa+tMjg4C/XdH3H glyYRSB4VOE1AWIAp8Yr32jDDDR32V1R/pEEcdWEVxssd5yol/7c+6sbgMXgsv1ERCIs aaQio7Iop2rKE53m5zgH2mH8McFRJEdRTtNOu59ihAiYBeRyXAJWntNIODSPs+5mmLhi dd9CxQ6DDUmxZ4hA2wfo6L12kbhI42ISm7eHR3dGyNQ+DjYzBWfjtDTWsaPxcNAfqr8u iWw2PhlBE1eq3oFIKCmbSW6QtGGaxSO+ZM+lTg7O4bs50azEdBWY+7l4rdh9/dWkzDuF lHpg== X-Gm-Message-State: AOAM533IDx6Pn5V1Uu8TMVeqo3rGIAvdtPezBd+zXW3OQhnUxTRjKkPA WhtBCYgbn/l/rtR3h1zIz3wVxpZZEP1S3HyP5bB2z6VGOK4tR7RG7PF3ZxMoquy1nwVlFx075gp QBLCvkj86jGOFnD6Z5kxPvL4z+Mhu8/+7Mkb/KO5oaf3i7e0NVPPryoXcD8Sj X-Google-Smtp-Source: ABdhPJyTvAnjgPH7qOJplqvKZhJ4w7fdm1p3b4yxFUn7I3L1lcdHhQoaZJKNigAeBDW0eyFrt44HrQ== X-Received: by 2002:a17:90b:e87:: with SMTP id fv7mr146962pjb.187.1601915251224; Mon, 05 Oct 2020 09:27:31 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d129sm378061pfc.161.2020.10.05.09.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 09:27:30 -0700 (PDT) From: Vikas Gupta To: dev@dpdk.org, akhil.goyal@nxp.com Cc: vikram.prakash@broadcom.com, Vikas Gupta , Raveendra Padasalagi Date: Mon, 5 Oct 2020 21:56:58 +0530 Message-Id: <20201005162658.12416-9-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201005162658.12416-1-vikas.gupta@broadcom.com> References: <20200813172344.3228-1-vikas.gupta@broadcom.com> <20201005162658.12416-1-vikas.gupta@broadcom.com> Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH v3 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 aaa6e1af70..f7b7cde6d7 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