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 F00B6A0548; Tue, 11 Oct 2022 20:59:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2381942C32; Tue, 11 Oct 2022 20:57:46 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id D98C542BD6 for ; Tue, 11 Oct 2022 20:57:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665514652; x=1697050652; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p5kCtqt26il3HDDzmN6u4CVaykibbO5/yGeRTUIxwkU=; b=e8R04uxBQ18LqsXLkNpcu6F4/42VFX8YB8zSEkQQzIo/UZHVntHyzZ2n 1+OvJPGw4cOalVRFtvcrzwHNgkgPLYu9b7ducF/C/Ntbjzwj8DD4Jys4R 9mXtekrtnOVvYfhZVmVLuhKP7VFQbfHhE9CUO/fh02ydDCLr0JIZRx3mK IjD9RKxz9eDuBYQtpM7s6WfCpCh5JmenOXJXlpcZEyyxbosi9q9F1XBht pDVwFBsHCaGIe+L+cVVc9bI/cJ45EDQ1W5dnWcCNuyb5xxmtDZC147wO+ pf3WXKJzIvz4lclL5iR/XI1y+6kk/rtqhy/yC7da+jf3ve9Yu6zzOMHCv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="284981658" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="284981658" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 11:57:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="604261586" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="604261586" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga006.jf.intel.com with ESMTP; 11 Oct 2022 11:57:31 -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 Subject: [PATCH v3 24/30] baseband/acc100: rename ldpc encode function arg Date: Tue, 11 Oct 2022 19:53:40 -0700 Message-Id: <20221012025346.204394-25-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221012025346.204394-1-hernan.vargas@intel.com> References: <20221012025346.204394-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 Rename total_enqueued_cbs to total_enqueued_descs in the enqueue_ldpc_enc_n_op_cb function. No functional impact. Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_acc100_pmd.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index e0d22525e9..c74b1c61d2 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -2378,28 +2378,29 @@ enqueue_enc_one_op_cb(struct acc_queue *q, struct rte_bbdev_enc_op *op, return 1; } -/* Enqueue one encode operations for ACC100 device in CB mode */ + +/* Enqueue one encode operations for ACC100 device in CB mode + * multiplexed on the same descriptor + */ static inline int enqueue_ldpc_enc_n_op_cb(struct acc_queue *q, struct rte_bbdev_enc_op **ops, - uint16_t total_enqueued_cbs, int16_t num) + uint16_t total_enqueued_descs, int16_t num) { union acc_dma_desc *desc = NULL; uint32_t out_length; struct rte_mbuf *output_head, *output; int i, next_triplet; - uint16_t in_length_in_bytes; + uint16_t in_length_in_bytes, desc_idx; struct rte_bbdev_op_ldpc_enc *enc = &ops[0]->ldpc_enc; #ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE - /* Validate op structure */ if (validate_ldpc_enc_op(ops[0], q) == -1) { rte_bbdev_log(ERR, "LDPC encoder validation rejected"); return -EINVAL; } #endif - uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) - & q->sw_ring_wrap_mask); + desc_idx = ((q->sw_ring_head + total_enqueued_descs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx; acc_fcw_le_fill(ops[0], &desc->req.fcw_le, num, 0); -- 2.37.1