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 37857423FE; Tue, 17 Jan 2023 17:51:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8383242D65; Tue, 17 Jan 2023 17:50:34 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 57C7142D3C for ; Tue, 17 Jan 2023 17:50:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974228; x=1705510228; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QCR/XHakl8DHkB26GzG3wtUnmw164lvjsl+Ce6PTVbk=; b=IL5U7FO7tediUJmtqIUxNU+b/mkD4A3j0vkEBXP1OgyPU61daN+YGYe0 1eP0Rqpz2KT0DP9vM1qFQPacXyOQnC3QGDlQle5CJ+AzyEfFY/0Rlg1E8 imMXNpcPw1eHSoBOXQy2oD6ODcMQ/U2od+mBgkp6OABOuWJ6Ornahp/hW fdiq+84frfbmzp74l0lS3/8gCl1TPtpV08NEqmxeNlzXI5giz9OkdcsYM XG7zDx19ZnMfnsOQA6+MVXUmxw6T91lbA+6whemMl0lo75Ktgk248Jwlc v9mqkeTyCyMcoBgkYnvHaoRsP0XtH3XQwUjg9NuwN/jdiNXe/KTlWGAj5 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022085" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022085" 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:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235113" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235113" 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:27 -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 09/13] test/bbdev: bbdev-test cannot compare some scenarios Date: Tue, 17 Jan 2023 08:50:19 -0800 Message-Id: <20230117165023.20567-10-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 Updating logic for compression usecases. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index fdf7a28ba2..3b2578baf6 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -2143,12 +2143,17 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, total_data_size += orig_op->segments[i].length; TEST_ASSERT(orig_op->segments[i].length < - (uint32_t)(data_len + 64), + (uint32_t)(data_len + 256), "Length of segment differ in original (%u) and filled (%u) op", orig_op->segments[i].length, data_len); harq_orig = (int8_t *) orig_op->segments[i].addr; harq_out = rte_pktmbuf_mtod_offset(m, int8_t *, offset); + /* Cannot compare HARQ output data for such cases */ + if ((ldpc_llr_decimals > 1) && ((ops_ld->op_flags & RTE_BBDEV_LDPC_LLR_COMPRESSION) + || (ops_ld->op_flags & RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION))) + break; + if (!(ldpc_cap_flags & RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS ) || (ops_ld->op_flags & @@ -2224,7 +2229,7 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, /* Validate total mbuf pkt length */ uint32_t pkt_len = rte_pktmbuf_pkt_len(op->data) - op->offset; - TEST_ASSERT(total_data_size < pkt_len + 64, + TEST_ASSERT(total_data_size < pkt_len + 256, "Length of data differ in original (%u) and filled (%u) op", total_data_size, pkt_len); -- 2.37.1