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 CBA9043EDD for ; Mon, 22 Apr 2024 21:11:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A5B3402F2; Mon, 22 Apr 2024 21:11:36 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id 2E7A5402AE; 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=1713813094; x=1745349094; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ubnWmrE+5EflGa3B8s6UFD3H/PquKKJcIw2u1f95Rd8=; b=Fi3J6A8k83sRbP9sOdZakbrUZD4zH+hVQyf3aDCnsSCljPKnILigmDxF HtvhesWm4fsuoSFKgXB8483CYZM4ozftTzV54eH+oe91HnC7xGNdVOiot iFJ1P7Qxyg0VhDMBhwt8+Cji2Xg+6bAXw+mM4g0/cC/hndZGTjfop7UNN A+ins7ZKw1piKOrusgWhaeQq/8aupzwlZhV2rZpae6L4sVnJWZJuwG2WE vg3ioLW3MmvY61pU6msu3mBQNF/L3d6P50Jms4t8W4NUMTrHZeUxVdeBO JZacQPmVnsK3rAFasWTFr7T7m2uyvck7STO7O+emPCse1X0iq6tW8LCQP Q==; X-CSE-ConnectionGUID: rrHtEsNbRY+0XktrQZWeJg== X-CSE-MsgGUID: rndnwW57S6WSwsQZ+rMSgw== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="19922796" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="19922796" 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:33 -0700 X-CSE-ConnectionGUID: RvMzuPPJTCWL/ymSXGoVgQ== X-CSE-MsgGUID: yIxNPrdtTcqyriem3S2OGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="24555949" 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:32 -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 2/9] test/bbdev: fix MLD output size computation Date: Mon, 22 Apr 2024 12:07:53 -0700 Message-Id: <20240422190800.123027-3-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 For perf tests, the operation size for the MLD-TS was incorrect. Fixed so that the performance numbers are correct. Largely cosmetic only. Fixes: 95f192a40e35 ("test/bbdev: add MLD cases") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index efd046984d58..9ed0c4648d24 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -2896,8 +2896,14 @@ calc_fft_size(struct rte_bbdev_fft_op *op) static uint32_t calc_mldts_size(struct rte_bbdev_mldts_op *op) { - uint32_t output_size; - output_size = op->mldts.num_layers * op->mldts.num_rbs * op->mldts.c_rep; + uint32_t output_size = 0; + uint16_t i; + + for (i = 0; i < op->mldts.num_layers; i++) + output_size += op->mldts.q_m[i]; + + output_size *= 12 * 8 * op->mldts.num_rbs * (op->mldts.c_rep + 1); + return output_size; } -- 2.37.1