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 C2F2B43EDD for ; Mon, 22 Apr 2024 21:11:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9816640395; Mon, 22 Apr 2024 21:11:35 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id BE40740265; Mon, 22 Apr 2024 21:11:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713813093; x=1745349093; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U102rpZZowkZZDbYPsHfWyMqROd+POpvWWOWGPmAy2I=; b=kaUh/RhCnRQnMxf4i6392+IKKyl796cOvMCEXhdSxtBlBnqfVe5Satva 1HsJfN5OiV/aTtfAVqphQcGy8yDvMgGBVxP/faceMa3egoA4KR4YHrQJS WiPr8TIhCbuKAEB6BcOFww4pjhNi+7tbSgERs5qZLAT0st8EOENOTpZjY jyxMhG5e/ZItZRpYy0jogCUBaH4VxCWybrn2DESczpwoCSmAT/V3N+gAg 9l+f949x5cD8dvycUnRsHGQG7UAMi9pYhlLlt5WbnZN92kLfyoAitHuxH nsLeBMeCcpUnrWPHzbs4NgkzuLSiZeS+vj0eQCJn3aTNfC1nzmWqaLW2y w==; X-CSE-ConnectionGUID: 06gxPlpjTZeqhsjJmjoPuw== X-CSE-MsgGUID: 5hDo64ArRf2qlolm38pVqQ== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="19922791" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="19922791" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 12:11:32 -0700 X-CSE-ConnectionGUID: Aau1hCWURJufCCGztTbx6w== X-CSE-MsgGUID: WDWpLxEhTdiVHK4ne6EZQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="24555946" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa006.jf.intel.com with ESMTP; 22 Apr 2024 12:11:31 -0700 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 , stable@dpdk.org Subject: [PATCH v1 1/9] test/bbdev: fix TB logic Date: Mon, 22 Apr 2024 12:07:52 -0700 Message-Id: <20240422190800.123027-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240422190800.123027-1-hernan.vargas@intel.com> References: <20240422190800.123027-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Fix discrepancy in logic when using large fake mbuf. Fixes: fd96ef3787f1 ("test/bbdev: extend support for large TB") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index dcce00aa0a17..efd046984d58 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -2131,7 +2131,8 @@ validate_op_chain(struct rte_bbdev_op_data *op, uint16_t data_len = rte_pktmbuf_data_len(m) - offset; total_data_size += orig_op->segments[i].length; - if (orig_op->segments[i].length > RTE_BBDEV_LDPC_E_MAX_MBUF) + if ((orig_op->segments[i].length + RTE_PKTMBUF_HEADROOM) + > RTE_BBDEV_LDPC_E_MAX_MBUF) ignore_mbuf = true; if (!ignore_mbuf) TEST_ASSERT(orig_op->segments[i].length == data_len, -- 2.37.1