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 54482454E2 for ; Mon, 24 Jun 2024 17:07:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 902B340E72; Mon, 24 Jun 2024 17:07:14 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mails.dpdk.org (Postfix) with ESMTP id 7F83140616; Mon, 24 Jun 2024 17:07:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719241630; x=1750777630; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gZ9xFbvaaNCD10a9s1YRZB8+8QPQQ6n9z/FNRlGHhM4=; b=ZMwmjACb6lgjC9f57L0wd+ZIcljb+MFrq4XxwQBVTqrCgDjFAMep8aZN szC6eaeKBbWXnvEmE5NE2Qk0LMtVsBNpDCmLr/mLfPWBPkngA7UiCW9Qn bfSVMNMukMxHSiwMbVU+mWQP/7o5s7Sa4QrKwTWnU/xEclbCRhbPcgpm2 0u1H+FUS7Jq0pgis/ybs+rNYAdm39YkS31m1pMVFkm27NwKCpINCoLFbd VNdPzYACZzg9yiruw/k8YHLtjkLHsJy/vXNd2VWDMMnqV8TFR7fWWTEuw Q6ajSifWrMcweg5Iz49OVnRHWSZIEgJW8f0KJVaqyQBXbcfzIrHVlBOuf w==; X-CSE-ConnectionGUID: ZvQ5wct6RkO3mGkdGLyqnw== X-CSE-MsgGUID: Bln9LXfwSYS5l2YV05K1zQ== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16042013" X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="16042013" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 08:07:09 -0700 X-CSE-ConnectionGUID: /nc34p+kRkyIgUMbNSNrkQ== X-CSE-MsgGUID: 6PHetdJgRey4T2pnWc2uRw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="44025847" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa008.jf.intel.com with ESMTP; 24 Jun 2024 08:07:09 -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 v2 2/9] test/bbdev: fix MLD output size computation Date: Mon, 24 Jun 2024 08:02:30 -0700 Message-Id: <20240624150237.47169-3-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240624150237.47169-1-hernan.vargas@intel.com> References: <20240624150237.47169-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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 6d9bf3a233ec..9841464922ac 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -94,6 +94,8 @@ #define K0_2_2 25 /* K0 fraction numerator for rv 2 and BG 2 */ #define K0_3_1 56 /* K0 fraction numerator for rv 3 and BG 1 */ #define K0_3_2 43 /* K0 fraction numerator for rv 3 and BG 2 */ +#define NUM_SC_PER_RB (12) /* Number of subcarriers in a RB in 3GPP. */ +#define BITS_PER_LLR (8) /* Number of bits in a LLR. */ #define HARQ_MEM_TOLERANCE 256 static struct test_bbdev_vector test_vector; @@ -2896,8 +2898,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 *= NUM_SC_PER_RB * BITS_PER_LLR * op->mldts.num_rbs * (op->mldts.c_rep + 1); + return output_size; } -- 2.37.1