From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B92741DB8; Thu, 2 Mar 2023 21:23:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DD6742D85; Thu, 2 Mar 2023 21:22:17 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 4D38242D41 for ; Thu, 2 Mar 2023 21:22:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677788528; x=1709324528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=70m7YyZiBOgMX7gOdOg+RjaITEmGRbDUsVty+dKbERg=; b=CGxNHkto3LX6/YwiiPEYJXsNnMFJpmflztP5pxpbByd54GYKOTs59g0W WTWtXsrP2Hwdi8oFPqgde2twTM5CUVBewqIg8he/OuG65YfoidKRIuMcf NzSgEOC2qyiA1hihbkfLGBvZ+mF+u8wEvHJG2eHgpVT2ggHy0CECG9Eul rnVptoxPPMmwyluqUIAd+fo8n7slp4/mmhjdf2NKHS4To0vPFG/HXdwgA YofbL+3rbNX4M/x2B6uDlq3cHm5m4ZsXHixkCdDNOSMCaJngfBjLhRzco HCVTQ1zKxQYyPk37KNmPOnbW6/1E8zPM48gOe5SpjUHUI2vN5h9wAVR5F w==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="334871240" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="334871240" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 12:22:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="705398142" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="705398142" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:22:07 -0800 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v3 17/17] test/bbdev: remove iter count from bler test Date: Thu, 2 Mar 2023 12:22:11 -0800 Message-Id: <20230302202211.170017-18-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230302202211.170017-1-hernan.vargas@intel.com> References: <20230302202211.170017-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org iter_count doesn't need to be set equal to iter_max for bler tests. This is only needed in throughput and latency tests because early termination is disabled for those tests. Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev_perf.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index fcf0145fb2bf..e56d314e93b5 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -3737,12 +3737,10 @@ bler_pmd_lcore_ldpc_dec(void *arg) TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", num_ops); /* For BLER tests we need to enable early termination */ - if (!check_bit(ref_op->ldpc_dec.op_flags, - RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE)) - ref_op->ldpc_dec.op_flags += - RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE; + if (!check_bit(ref_op->ldpc_dec.op_flags, RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE)) + ref_op->ldpc_dec.op_flags += RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE; + ref_op->ldpc_dec.iter_max = get_iter_max(); - ref_op->ldpc_dec.iter_count = ref_op->ldpc_dec.iter_max; if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_ldpc_dec_op(ops_enq, num_ops, 0, bufs->inputs, @@ -3873,12 +3871,10 @@ bler_pmd_lcore_turbo_dec(void *arg) TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", num_ops); /* For BLER tests we need to enable early termination */ - if (!check_bit(ref_op->turbo_dec.op_flags, - RTE_BBDEV_TURBO_EARLY_TERMINATION)) - ref_op->turbo_dec.op_flags += - RTE_BBDEV_TURBO_EARLY_TERMINATION; + if (!check_bit(ref_op->turbo_dec.op_flags, RTE_BBDEV_TURBO_EARLY_TERMINATION)) + ref_op->turbo_dec.op_flags += RTE_BBDEV_TURBO_EARLY_TERMINATION; + ref_op->turbo_dec.iter_max = get_iter_max(); - ref_op->turbo_dec.iter_count = ref_op->turbo_dec.iter_max; if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_dec_op(ops_enq, num_ops, 0, bufs->inputs, -- 2.37.1