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 2E2C7A00C2; Wed, 4 Jan 2023 17:16:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CCBB40A89; Wed, 4 Jan 2023 17:16:05 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 7BD264067B for ; Wed, 4 Jan 2023 17:16:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672848963; x=1704384963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HI670xNDL3Y54w2e/G72DjM/nEZHwQW73VfD6fYY/CA=; b=Is+8cyG4AAWdCBIOAyobetPPPtbyhKuIy7W9kZZP5zA80FCCTC9Jt4JV vQkbu8fyU3b+hCNxXIf454hvK5RExvO269vB2EGrbl208DR7SgpOvj8LS LBLeCrj2XtJo/I/vODkAEuJE6Q540yNPgCnTFfcT9rC9kfKTCE+8UE3Si Ad20D484IguBvJHK0tDckNUyKDaEWa7bFz6C7akxHGft/73Y+re6t+iKq pKSGTPerJdBMYDAXwQxnMsgfflaEPsKZfh2g2ZK5BPQXiScTUMUrzfe7w 1gRwZDzF60jem6KJ3e8PDaXNIUuKl0wH0yEA+hg9VXXwDak0wjGsPpy36 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="302341311" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="302341311" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 08:16:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="797590413" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="797590413" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by fmsmga001.fm.intel.com with ESMTP; 04 Jan 2023 08:16:01 -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 v1 1/6] baseband/acc: acc100 use define constant Date: Wed, 4 Jan 2023 16:11:04 -0800 Message-Id: <20230105001109.120564-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230105001109.120564-1-hernan.vargas@intel.com> References: <20230105001109.120564-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 ba8247d47e..2b3e9090b4 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1391,7 +1391,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; @@ -1434,7 +1434,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