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 618C8423BA; Thu, 12 Jan 2023 20:36:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F2F142DD3; Thu, 12 Jan 2023 20:36:24 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 4B99142DCC for ; Thu, 12 Jan 2023 20:36:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673552180; x=1705088180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EAnXVmZ6T3PhF5HXWPx+JZCJ0V3QVwKa4CV5GwI+xGE=; b=NEyVvplwAvgoYMdfVy95YByGesO0aWlZKXR+I+/5/5CPTIAb1Jf29/2c +Yz4cl0WwpiEP/GW3otWTSCwgs5jUCiEs3mKwHAMKW/D8jIavvRTQyiFE t+I0CFTvKC/cfWQyXmcaxG5ykbkM17Ld0skA1imlqFfYmReU5K/npY2hb fHTeTdh8mTo2MLDkCWmFNNFLbTa5YOOPsVxBBkGhP3Cjxe1ZfFwpudGQE 7oKhVVSiYv4mMKdYH4/s+JQceHMkATF4UBa/lBo4thHArIcWYnrph5fki 21qB3ar+Wb7etSVWkzrUclG1tRzrygRhgmsFFiUw3jhMCDN5NRsLdnO50 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="322502828" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="322502828" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 11:36:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="690245081" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="690245081" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2023 11:36:18 -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 v3 5/7] baseband/acc: acc100 use define constant Date: Thu, 12 Jan 2023 11:36:07 -0800 Message-Id: <20230112193609.273578-6-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230112193609.273578-1-hernan.vargas@intel.com> References: <20230112193609.273578-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 Use define constant ACC_HARQ_ALIGN_64B instead of hardcoded number. No functional impact. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index 3660d3b240..ef1c488a1c 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1390,7 +1390,7 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, harq_in_length = RTE_MIN(harq_in_length, op->ldpc_dec.n_cb - op->ldpc_dec.n_filler); /* Alignment on next 64B - Already enforced from HC output */ - harq_in_length = RTE_ALIGN_FLOOR(harq_in_length, 64); + harq_in_length = RTE_ALIGN_FLOOR(harq_in_length, ACC_HARQ_ALIGN_64B); fcw->hcin_size0 = harq_in_length; fcw->hcin_offset = 0; fcw->hcin_size1 = 0; @@ -1433,7 +1433,7 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, /* Cannot exceed the pruned Ncb circular buffer */ harq_out_length = RTE_MIN(harq_out_length, ncb_p); /* Alignment on next 64B */ - harq_out_length = RTE_ALIGN_CEIL(harq_out_length, 64); + harq_out_length = RTE_ALIGN_CEIL(harq_out_length, ACC_HARQ_ALIGN_64B); fcw->hcout_size0 = harq_out_length; fcw->hcout_size1 = 0; fcw->hcout_offset = 0; -- 2.37.1