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 5E645A04B5; Wed, 30 Sep 2020 19:34:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E28601D564; Wed, 30 Sep 2020 19:34:28 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 676711D543 for ; Wed, 30 Sep 2020 19:34:24 +0200 (CEST) IronPort-SDR: rXFaQSY5EDKKQnRFFG8fCd8CcDXE4w88vgX1qAW3LTuzmLS3aHnRybgnEKjXleyaUbmeZbyYC6 PhyikSMyTfHw== X-IronPort-AV: E=McAfee;i="6000,8403,9760"; a="159886521" X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="159886521" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2020 10:34:23 -0700 IronPort-SDR: 2XTdeyIqh6RvgfSMASvfcgQBDUCFosByHUBRY3to82uw8cpW+G/YkAvxoWCVaJ1z9fcz6DRToZ 6nCRpeuMwT8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,322,1596524400"; d="scan'208";a="325109790" Received: from unknown (HELO akusztax-MOBL1.ger.corp.intel.com) ([10.104.113.124]) by orsmga002.jf.intel.com with ESMTP; 30 Sep 2020 10:34:21 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, ruifeng.wang@arm.com, michaelsh@marvell.com, Arek Kusztal Date: Wed, 30 Sep 2020 19:32:22 +0200 Message-Id: <20200930173226.770-2-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200930173226.770-1-arkadiuszx.kusztal@intel.com> References: <20200930173226.770-1-arkadiuszx.kusztal@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 1/5] app/test: remove list end references from asym crypto 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" This patch removes RTE_CRYPTO_ASYM_OP_LIST_END reference from asymmetric crypto tests. Signed-off-by: Arek Kusztal --- app/test/test_cryptodev_asym.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index dc62ed7bf..63a6bba4f 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -542,7 +542,8 @@ test_one_case(const void *test_case, int sessionless) printf(" %u) TestCase %s %s\n", test_index++, tc.modex.description, test_msg); } else { - for (i = 0; i < RTE_CRYPTO_ASYM_OP_LIST_END; i++) { + for (i = RTE_CRYPTO_ASYM_OP_ENCRYPT; + i <= RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE; i++) { if (tc.modex.xform_type == RTE_CRYPTO_ASYM_XFORM_RSA) { if (tc.rsa_data.op_type_flags & (1 << i)) { if (tc.rsa_data.key_exp) { @@ -1028,7 +1029,8 @@ static inline void print_asym_capa( rte_crypto_asym_xform_strings[capa->xform_type]); printf("operation supported -"); - for (i = 0; i < RTE_CRYPTO_ASYM_OP_LIST_END; i++) { + for (i = RTE_CRYPTO_ASYM_OP_ENCRYPT; + i <= RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE; i++) { /* check supported operations */ if (rte_cryptodev_asym_xform_capability_check_optype(capa, i)) printf(" %s", -- 2.17.1