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 0A110457BB; Wed, 14 Aug 2024 09:48:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74C31410D5; Wed, 14 Aug 2024 09:48:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id 4D90A4026C for ; Tue, 13 Aug 2024 18:00:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564815; x=1755100815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RHts9feM10nfbUB9pkA8cpRSYEwjkHeAbGGhUmyMRqg=; b=UTXrof/ItX76KyK94r2ygOCUjDTmBPOn64Sz1jFh/x27OTRMEs0CKrAy XAYGP3XdVhX0BZstoA0GHOIF2WHk2Kn1NZ7TA8PfbQu8hbH8CZvWUW2LD LaQ3QDcvnTbsGypOUfkbXBpsv7p9guJby0qQ6ovZXCBeRhhiA/hsxILVt t0lnGiK+YljjlszMOwHZd+9RPpMwG8JySGv9jd9rwcdknHre+/jCh3S5z NGMIKrkgT9366Fz+JU+nfw/Nw4zC87tHlq4FdO+5+MQJEQTQoo1OooICe XlHFpOvp60/g6MTuj74+ceNaJT+Z/laN50BStwSRTMlF4OwnT9S27bk2G w==; X-CSE-ConnectionGUID: alXfgK5cR+eMNq3o3xvsEg== X-CSE-MsgGUID: /teBOh71QEudHwkNSJJI+Q== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987797" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987797" 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:14 -0700 X-CSE-ConnectionGUID: Uh0L9WY+TiKmrcte9q3wqw== X-CSE-MsgGUID: wLMn6yPPSX2VkhAe1uOhgg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406104" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:12 -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 02/26] eventdev: remove use of ethev queues define Date: Tue, 13 Aug 2024 16:59:39 +0100 Message-ID: <20240813160003.423935-3-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 max queues per port definition is intended for use for ethdevs, so it's use for a dummy array in eventdev is likely wrong. Since the array is intended to be for eventdev ports, use RTE_EVENT_MAX_PORTS_PER_DEV define instead. Signed-off-by: Bruce Richardson --- lib/eventdev/eventdev_private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventdev/eventdev_private.c b/lib/eventdev/eventdev_private.c index 017f97ccab..a84d0a46ac 100644 --- a/lib/eventdev/eventdev_private.c +++ b/lib/eventdev/eventdev_private.c @@ -99,7 +99,7 @@ dummy_event_port_profile_switch(__rte_unused void *port, __rte_unused uint8_t pr void event_dev_fp_ops_reset(struct rte_event_fp_ops *fp_op) { - static void *dummy_data[RTE_MAX_QUEUES_PER_PORT]; + static void *dummy_data[RTE_EVENT_MAX_PORTS_PER_DEV]; static const struct rte_event_fp_ops dummy = { .enqueue = dummy_event_enqueue, .enqueue_burst = dummy_event_enqueue_burst, -- 2.43.0