From patchwork Fri Jan 6 05:44:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hernan Vargas X-Patchwork-Id: 121636 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F076CA00C2; Thu, 5 Jan 2023 22:50:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14E6942D3A; Thu, 5 Jan 2023 22:49:48 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3615F42D1D for ; Thu, 5 Jan 2023 22:49:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672955383; x=1704491383; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Be/DsGYezOVc++Ga1hUBfonGm/g5K3LRBMyEfnuXv0c=; b=eA403e6W+jnkZqXWrRGlTrzCcD+yC19hqQ7hojflsc+CFIUJ+cxXC/hT hxLhX0Mbfrbgo0AZPA2iVdxyKGT/gQ2DUG0CSLqkP6DXyAtBrhYcaRfro DrVhltbujMqV4U2Mt++y6M/9MbuWzSwWT3ma933xoClMpxfzGMqMSjp6U 5qayTp7JGCnLSsaZQDtPL0IhnP1NJoHgdH38JgWbWCMbJ2EvZznSveclX v7+IQRr3riZoPUO/tUvbM7//tZ3UZU81OEPxFGBOh42goI4jYLtlnuMi3 HcebwRlVPKMHrMluhgF5XKis7r5XvMEII/aHgWF47K9K83ncBRuS76BWq Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="302700482" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="302700482" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 13:49:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="686264728" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="686264728" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 05 Jan 2023 13:49:38 -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 v2 5/7] baseband/acc: acc100 use define constant Date: Thu, 5 Jan 2023 21:44:41 -0800 Message-Id: <20230106054443.199473-6-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230106054443.199473-1-hernan.vargas@intel.com> References: <20230106054443.199473-1-hernan.vargas@intel.com> MIME-Version: 1.0 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 Reviewed-by: Maxime Coquelin --- 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 1ca95f4440..4ac8061ebd 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1392,7 +1392,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; @@ -1435,7 +1435,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;