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 CB920A04B0; Thu, 13 Aug 2020 19:25:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBDC21C194; Thu, 13 Aug 2020 19:24:26 +0200 (CEST) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by dpdk.org (Postfix) with ESMTP id 1590E1C12F for ; Thu, 13 Aug 2020 19:24:25 +0200 (CEST) Received: by mail-qk1-f193.google.com with SMTP id l64so5847807qkb.8 for ; Thu, 13 Aug 2020 10:24:25 -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=xX2lCvpLxnRg8dR2FywAw3rwTaiGLevMBCb40HsME/w=; b=gPywNRhi+YoyLC1KyfqIRKtyzMzTiqCWOKGzRBYYDkNMnUnZY2CVFRAUrxGJfTqIHn t3rUsxfidDZ2QJDnQ/BcJBXRZ2d1ayJMCLvbVdWqJIkU89UGgM9bFN68IdkPKguvcaID lAweOIP+J8LvMJCmIP4TMIJsUkm/9564lX4vs= 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=xX2lCvpLxnRg8dR2FywAw3rwTaiGLevMBCb40HsME/w=; b=Qp7lJ1YlC8CqgMZPQl4oICReGAPvbaLXXCVGBGDd8VolZZY8LlsEsELv6IRPeo4GX3 H5agnFBXm2h68snDflmjiLctGOtXVtjgoMKU0TDX2TgIQs2YvH7E0u1PhYsq8ErkGi8J K3K/t14YxtSEQIzHrzaIT/F+Wo5Da5EadMo6LtQ96Tgs0sBwjxtOlV1YHykUARzThIb3 8ACu5r8OICTGf+Ow3Tq1fEahCVYmxwEkERPbgXBjHp57YVSAdEbZptJw5+BGaiWpWKRu tMva8hERL8G06bEe682n/RG0W9cyn3m+OCAiFv++WRGilNNbfIA3R2bhs/U1pGW9u4Vn gObg== X-Gm-Message-State: AOAM533CO/KLFW/++nisS5dldlApc5oIPOqfBL8h05MLy6XJ3aFV2TaR //AA2QeBUHtNH3RhgDiWIPh3yPZGsaSayoTTdqPneL7PB9vGVuHvUKSOrj5GrhCljwCtX50v5z8 KsGbdRDxgmR4y92HKFtWDgTHoepsAE8Sufaq+oqWRrjagLwaIIdmbGheWZAAg X-Google-Smtp-Source: ABdhPJyjnsuWKzRL2aUcNbhfbxQ6I1PSEwp2wMTO9X+5UK5N/MwfhKEyH1zQ/50NKHOaVs+W5CL86g== X-Received: by 2002:a05:620a:149a:: with SMTP id w26mr5464141qkj.432.1597339464040; Thu, 13 Aug 2020 10:24:24 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id g129sm6246635qkb.39.2020.08.13.10.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 10:24:23 -0700 (PDT) From: Vikas Gupta To: dev@dpdk.org, akhil.goyal@nxp.com Cc: vikram.prakash@broadcom.com, Vikas Gupta , Raveendra Padasalagi Date: Thu, 13 Aug 2020 22:53:44 +0530 Message-Id: <20200813172344.3228-9-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200813172344.3228-1-vikas.gupta@broadcom.com> References: <20200812063127.8687-1-vikas.gupta@broadcom.com> <20200813172344.3228-1-vikas.gupta@broadcom.com> Subject: [dpdk-dev] [PATCH v2 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 + 2 files changed, 18 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 70bf6fe2c..9157115ab 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 41542e055..c58126368 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 -- 2.17.1