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 02F86457BB; Wed, 14 Aug 2024 09:48:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1939E40FDE; Wed, 14 Aug 2024 09:48:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id B93F74026C for ; Tue, 13 Aug 2024 18:00:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564813; x=1755100813; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wVGApsrjck0nMaBCYIaLZopBR9ehIe3aokU+k/6N6LU=; b=lk5SLe/1tN5ms0M8A3xsAHUcHqLa5hgjYhL1TNtgXy3qvMqfDFhmbz5x wfWd4ufRC5Y8aUzpnomvCxHBtIneIiVvNxpQzVn3MqGsVTH2+yUVbnO95 0b/p1ddio2Sw1+t/udXxEOghOOpWT3faFFNSmHiAZnpj+S9Elx1wsmIxh qXBnXsLE7wKJO2NqFJawRzGytZu827hxR4ZLOB1qUXJH7dvAosRZzyUzi s76CO6773WJD5OKOGYJvP9Cg2wOfekT7JGp8Ibg4Sx4MoRyhQJbYpxSTa qYjRaFPVBeMvowfwVPfUfyR3UVu8S3ee6kfQIFOnF0U8jcfEyLZkAYttL w==; X-CSE-ConnectionGUID: 9nLLunJMQFOeMiL2LIN3pQ== X-CSE-MsgGUID: IfsSCtU4T8+/vW6WplACpQ== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987793" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987793" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2024 09:00:13 -0700 X-CSE-ConnectionGUID: O6dknsLER0iGXhrQtVS0EQ== X-CSE-MsgGUID: nv+86FfuTpaYTN/kYC/pHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406088" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:11 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson , Bruce Richardson Subject: [RFC PATCH v2 01/26] cryptodev: remove use of ethdev max queues definition Date: Tue, 13 Aug 2024 16:59:38 +0100 Message-ID: <20240813160003.423935-2-bruce.richards@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240813160003.423935-1-bruce.richards@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240813160003.423935-1-bruce.richards@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 14 Aug 2024 09:48:34 +0200 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 --- 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