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 61C44A00C2; Wed, 4 Jan 2023 17:16:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9983742D31; Wed, 4 Jan 2023 17:16:12 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C4C3140041 for ; Wed, 4 Jan 2023 17:16:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672848966; x=1704384966; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gV69m7zXoIfpoP4HeFlI4frUJlDKWCgfRj9T6Yrnjsg=; b=IiGyy0QVZ7CdNy/qWs7VNBu+nYptv3m1D5Ma+74fKHZRUGdL6KAP9Vmr RLX5AiiTYulEbUSvym/O2n6FZCn+lmQCw5i1pOpG1TJep5YcwlyRCi6Fe LBENuEvBOuznc6upemdlRoheKL1OMuB8828JwBcBWEoZJPYp7RHTB8tuZ wb0p96bds+TkAnpgE8LT078tCPzf1VhnA9Lg/TwAjYAPZWv2u07z4irdg 1WLQ1RrPI4R10lcpEnEDziei9VcJ/KBikmjzSrO0Hb2hCrMXrGJGYFT4A cUwsDlMAjFoqidifFd88383Pj20iOI/QjGUhYugdtXXtHYQhrzUBNGSgw Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="302341335" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="302341335" 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:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="797590431" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="797590431" 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:02 -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 5/6] baseband/acc: acc100 ignore missing mempools Date: Wed, 4 Jan 2023 16:11:08 -0800 Message-Id: <20230105001109.120564-6-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 Mempool not strictly required to be present in op for processing. Previous criteria too strict. No functional impact. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index 08519121c8..7529918975 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1832,10 +1832,6 @@ validate_enc_op(struct rte_bbdev_enc_op *op, struct acc_queue *q) if (!validate_op_required(q)) return 0; - if (op->mempool == NULL) { - rte_bbdev_log(ERR, "Invalid mempool pointer"); - return -1; - } if (turbo_enc->input.data == NULL) { rte_bbdev_log(ERR, "Invalid input pointer"); return -1; @@ -2679,10 +2675,6 @@ validate_dec_op(struct rte_bbdev_dec_op *op, struct acc_queue *q) if (!validate_op_required(q)) return 0; - if (op->mempool == NULL) { - rte_bbdev_log(ERR, "Invalid mempool pointer"); - return -1; - } if (turbo_dec->input.data == NULL) { rte_bbdev_log(ERR, "Invalid input pointer"); return -1; -- 2.37.1