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 8FC3D457C0; Wed, 14 Aug 2024 12:50:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BF91427C5; Wed, 14 Aug 2024 12:50:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 5E0B6427AA for ; Wed, 14 Aug 2024 12:50:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632607; x=1755168607; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oVsJTAwexNx87C6MkVqgWRgzO5+E7NfKiKWb8zUehAs=; b=h9o0MNZXGF8Pa5iD+fTJmUKDwU2+xfmBxr8xF3lqe+YHYWWZ8faEVold CrA1+EA4Op9PMfka8FD5WKfyiS40/pGVsOJ6RIOG+qHDY82DSi2iJdDl4 sr+iPXjmZgc97JDhX7l5NuutbOhpaAPIHk3vh15ybCD8/NRwq2kz3Hi6D trNy327lsbGrW0ScjLBQ3xCvmMEG9GDOKIuMVIC/xXm31j+q8ZcrYtlnW j3+qMMqukEvMaRPon8b5AfPoUgOIEcgCViRwaM2ebeN2yXzAi8UUa3LnX xY2PPqU7wJJROL/czHA3pJCwKf/sy0OiajPsIp8i9MoI20s1hGCIUmsHN g==; X-CSE-ConnectionGUID: m126Ehc6Sl6wSbC6QX2Yvw== X-CSE-MsgGUID: hp/gh6P0S0ODHxAXfhkXVQ== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360218" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360218" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 03:50:06 -0700 X-CSE-ConnectionGUID: +kGYrtbXSg6m2yVf9nCeQw== X-CSE-MsgGUID: lcuo3wP/RUac3VQEckQ1Yw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481588" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:05 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 01/26] cryptodev: remove use of ethdev max queues definition Date: Wed, 14 Aug 2024 11:49:07 +0100 Message-ID: <20240814104933.14062-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240814104933.14062-1-bruce.richardson@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240814104933.14062-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 The number of queue pairs supported by cryptodev should not be dependent on the number of ethdev Rx or Tx queues, so add a new define for cryptodev specifically. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup --- config/rte_config.h | 1 + lib/cryptodev/cryptodev_pmd.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/rte_config.h b/config/rte_config.h index dd7bb0d35b..d67ff77c71 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -71,6 +71,7 @@ /* cryptodev defines */ #define RTE_CRYPTO_MAX_DEVS 64 +#define RTE_CRYPTO_MAX_QPS_PER_DEV 256 #define RTE_CRYPTODEV_NAME_LEN 64 #define RTE_CRYPTO_CALLBACKS 1 diff --git a/lib/cryptodev/cryptodev_pmd.c b/lib/cryptodev/cryptodev_pmd.c index 87ced122b4..d3263bd907 100644 --- a/lib/cryptodev/cryptodev_pmd.c +++ b/lib/cryptodev/cryptodev_pmd.c @@ -212,8 +212,8 @@ dummy_crypto_dequeue_burst(__rte_unused void *qp, void cryptodev_fp_ops_reset(struct rte_crypto_fp_ops *fp_ops) { - static struct rte_cryptodev_cb_rcu dummy_cb[RTE_MAX_QUEUES_PER_PORT]; - static void *dummy_data[RTE_MAX_QUEUES_PER_PORT]; + static struct rte_cryptodev_cb_rcu dummy_cb[RTE_CRYPTO_MAX_QPS_PER_DEV]; + static void *dummy_data[RTE_CRYPTO_MAX_QPS_PER_DEV]; static const struct rte_crypto_fp_ops dummy = { .enqueue_burst = dummy_crypto_enqueue_burst, .dequeue_burst = dummy_crypto_dequeue_burst, -- 2.43.0