From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 00ACF457C0;
	Wed, 14 Aug 2024 12:50:17 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id E36B7427D4;
	Wed, 14 Aug 2024 12:50:16 +0200 (CEST)
Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9])
 by mails.dpdk.org (Postfix) with ESMTP id 4DE1E427D4
 for <dev@dpdk.org>; Wed, 14 Aug 2024 12:50:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1723632615; x=1755168615;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=bzct8BkttPc4RqlSslY0ls+QWP29qVM1onnjoAtkhGQ=;
 b=dKgnhKlSD9cjumcL5d0LLBFm7sLVYXvmx9cuEcLf4Ke07fyyhnGnzH8F
 7O0lGL4N9F5aLUK7ZxAgSzAdPUg5dOwSB8Wqy/bQyfu/srn4Kh/Q5QSo9
 P2VXj3WWhfQ82Xj1BIG0XhPbLF6CDDB3NU3BPwNm9WMJSG1KZFoda9IM7
 gxT4Fp3NA6ESvANIROb2Js8HPH2OQfM2mCQUjvjyLjBN8tM7v6urcnz14
 fdgt+XJqGoGc05CK3p85g8BI1ELK5HOWqYN/EUwm8PcQvn2ryKr631DJZ
 WHqGEaUbOaXg8dYqvTGpu/tQ6HBlRMmszQxu8jngVaAioffARADMM0PYv Q==;
X-CSE-ConnectionGUID: iApW3x34TD+lgK6lq1YL3g==
X-CSE-MsgGUID: YxVgtnmvQ5+xoX1WjyTREQ==
X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360235"
X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360235"
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:14 -0700
X-CSE-ConnectionGUID: o23ozdBCSYunOyP40mx6HA==
X-CSE-MsgGUID: kLPzFnE4RX2iPufgQ5uu/g==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481624"
Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25])
 by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:13 -0700
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com,
 Bruce Richardson <bruce.richardson@intel.com>
Subject: [PATCH v3 02/26] eventdev: remove use of ethev queues define
Date: Wed, 14 Aug 2024 11:49:08 +0100
Message-ID: <20240814104933.14062-3-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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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 <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 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