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 B49E641CA8; Wed, 15 Feb 2023 18:14:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1945F42D79; Wed, 15 Feb 2023 18:13:20 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 3EBAA42D36 for ; Wed, 15 Feb 2023 18:13:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676481184; x=1708017184; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OoZnCheR1ry9JZLWagPUwnjlJPRkIY/S17KxzfA1Nh8=; b=XWsYEjIK4BSnI71n4bs6P4T2vRaMz8d2fbot7I2hFaDlGOxJyrfePi3X cKnCNbO9P0ZQFcSMRna/yc67JSO/FKGDYuYEzrIw+ETY/kzSfU8BpC0Mc U45n7fPxjbFxR4ZKDJCjd1eCXQ66qQ4sBL6CDOJ3bvVgqZXJEUIsV9fzg gK3yGh/fFIO4YURhVvh9OudB1OJBZlliMDrxuUlXwiXajrG51PcOKZkHh C6Ap39/IrAe0/vM1ecfkFtSVwD5g6Xk0VrHpSpfYjTnta3MpDo+CZlRao yWI2vmh0uDRBAHdJIizPaU0PSV1kH8p7HlKLEYo7H4ipHftg/xidxvC79 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="332789858" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="332789858" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 09:10:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="758489723" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="758489723" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:10:01 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v2 16/16] test/bbdev: remove iter count from bler test Date: Wed, 15 Feb 2023 09:09:49 -0800 Message-Id: <20230215170949.60569-17-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230215170949.60569-1-hernan.vargas@intel.com> References: <20230215170949.60569-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 --- 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 2baa2a0e62..621feee42b 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -3714,12 +3714,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, @@ -3838,12 +3836,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