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 5889A423BA; Thu, 12 Jan 2023 20:36:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 878C042DDB; Thu, 12 Jan 2023 20:36:21 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 9DB9442DCC for ; Thu, 12 Jan 2023 20:36:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673552179; x=1705088179; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GGDB9E7erXR+xVh/wR+4NBJ5DXdLMun3H2dp6D+LEKg=; b=fpjFfBNXHu/4Mo6NUaOwyWtuUnOjWVodQKgEZtsFwD1FRBipAZVJZKAz 3HozNFqK0XuyZs3qBHQJuWuW+LBn/N87ljt7ZzoY9VIAshvVZVqVL9vPg R/d6JnALxW20kRIpr9Nh83ok1gRPiNexxEW0m2V3klRyktADibSqzR1c7 aAiQx2OGKtWQ6LhXoBaQsewk7YYQFdBF+c9LYTcQpE4vCEzKvbqngRelC ooWtmWs/W3RYtem8DNuTdgKUFENrQbBQF5sEG7TaVu8N9824SEmxMHofj lJSAcxTGRkcMR6HAwWAOO8Q7Ag9pD44p5vQmOFPLRtliS/UrUoeJ2Sf/0 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="322502819" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="322502819" 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:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="690245075" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="690245075" 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:17 -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 3/7] baseband/acc: acc100 fix multiplexing multiple ops Date: Thu, 12 Jan 2023 11:36:05 -0800 Message-Id: <20230112193609.273578-4-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 Function to check if multiplexing is possible for multiple operations in one descriptor returns number of enqueued ops. Fixes: 32e8b7ea35d ("baseband/acc100: refactor to segregate common code") Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index a00314c957..eb18cc2215 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -3421,9 +3421,9 @@ acc100_enqueue_ldpc_enc_cb(struct rte_bbdev_queue_data *q_data, } avail--; enq = RTE_MIN(left, ACC_MUX_5GDL_DESC); - if (check_mux(&ops[i], enq)) { - ret = enqueue_ldpc_enc_n_op_cb(q, &ops[i], - desc_idx, enq); + enq = check_mux(&ops[i], enq); + if (enq > 1) { + ret = enqueue_ldpc_enc_n_op_cb(q, &ops[i], desc_idx, enq); if (ret < 0) { acc_enqueue_invalid(q_data); break; -- 2.37.1