[v3,02/26] eventdev: remove use of ethev queues define

Message ID 20240814104933.14062-3-bruce.richardson@intel.com (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series add meson config options for queues per port |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Aug. 14, 2024, 10:49 a.m. UTC
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(-)
  

Patch

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,