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 A6CFE423FE; Tue, 17 Jan 2023 17:51:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ADD242D84; Tue, 17 Jan 2023 17:50:38 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 7A15C42D24 for ; Tue, 17 Jan 2023 17:50:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974229; x=1705510229; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2YjlIG2IBORejciazXV52lhg372OPHJEIwb8QwAEyns=; b=bASQk2nbK/8fQp6d+Jxg4C43fRC8pvUVdeQ4P8qqa+nOxbBgWtyJFMQr Un2BEMaq+seGad9Kvbe2aR33eH0qKFbBtxv4FhOzo8PrJtXcs1TlbGdTN PwFVLQZdQQKXdTiKQ5wfhAHAS5QE+LyBtcsrOQ2nDVmB/r6R6wZcw7/pz byxzV7o1bwz0CacqvsHCG2IWQXuuifwKQgCDRUjpkxwYCREASFDUsBKNj Sgz1goUGGrut7K1tNKm6rxsM4UI8mZThl+5o9ypFXk39IXjNg2GgwzEFG 3VXz8fQit3CoFoNTEsJUaL4Xp1TgmX8f/WtVL9WCNtBc+KXi+DsSlxcz4 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022100" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022100" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 08:50:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235125" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235125" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2023 08:50:28 -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 v1 13/13] test/bbdev: remove iteration count check Date: Tue, 17 Jan 2023 08:50:23 -0800 Message-Id: <20230117165023.20567-14-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230117165023.20567-1-hernan.vargas@intel.com> References: <20230117165023.20567-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 To make the test compatible with devices that do not support early termination, the iteration count assert can be removed. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 81bf2c8b60..c68d79cf29 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -2290,6 +2290,7 @@ static int validate_dec_op(struct rte_bbdev_dec_op **ops, const uint16_t n, struct rte_bbdev_dec_op *ref_op, const int vector_mask) { + RTE_SET_USED(vector_mask); unsigned int i; int ret; struct op_data_entries *hard_data_orig = @@ -2299,17 +2300,12 @@ validate_dec_op(struct rte_bbdev_dec_op **ops, const uint16_t n, struct rte_bbdev_op_turbo_dec *ops_td; struct rte_bbdev_op_data *hard_output; struct rte_bbdev_op_data *soft_output; - struct rte_bbdev_op_turbo_dec *ref_td = &ref_op->turbo_dec; for (i = 0; i < n; ++i) { ops_td = &ops[i]->turbo_dec; hard_output = &ops_td->hard_output; soft_output = &ops_td->soft_output; - if (vector_mask & TEST_BBDEV_VF_EXPECTED_ITER_COUNT) - TEST_ASSERT(ops_td->iter_count <= ref_td->iter_count, - "Returned iter_count (%d) > expected iter_count (%d)", - ops_td->iter_count, ref_td->iter_count); ret = check_dec_status_and_ordering(ops[i], i, ref_op->status); TEST_ASSERT_SUCCESS(ret, "Checking status and ordering for decoder failed"); -- 2.37.1