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 AA3C2423BA; Thu, 12 Jan 2023 20:36:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39AB342DEF; Thu, 12 Jan 2023 20:36:26 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id B5A0342DDB for ; Thu, 12 Jan 2023 20:36:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673552180; x=1705088180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kobiSZEI9tXM+mRe3FO/VQVUS0WdLQTjMfn4jEjL0DM=; b=DHc0ARkkZ6Cx0xiKFpfpQT6Hx7EAoxVi+v+Tjq11JoclXrFqC5aljy5z p87P8+f3No55dEV7LHgOMctSlVjczM/ilLC8xSa14HoVOu5Ef3xnPLvoV D6w4TgEYCwCJrKO2eLkwIYL4otGc4BcdS1XF3e9zrCzHhEemxfgLAl1Ep /z4iL0PGJbu0XTPBhhjwBH7jLGYrqF+D6gjE1ADrnO3JKvOiWsLnWO4Ee T8oUmOows4skIuY8Cm8LzrilAAOiN25tKfu0NbISvjv++bvrcd7ix9Jdv 9eyzgM8VLmQkAhNqLDc2TOC1I6c5Sr9csbjg3X1gH3NwwiGBgMpzVa+p4 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="322502839" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="322502839" 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:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="690245092" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="690245092" 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:19 -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 7/7] baseband/acc: acc100 ignore missing mempools Date: Thu, 12 Jan 2023 11:36:09 -0800 Message-Id: <20230112193609.273578-8-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 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 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index d3aaeb8f2c..0992cb5d1e 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -1830,10 +1829,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; @@ -2677,10 +2672,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