eventdev: allocate max space for internal arrays
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Mon, 18 Oct 2021 23:35:58 +0000 (05:05 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:14:50 +0000 (10:14 +0200)
commit9c67fcbfd66450a2fd53bdffed91ab5a07c6c47f
tree904844a3e2503de652666c4899a5d37891ac468b
parent26f14535ed10a7422a10915b8c0aa74dadb9f367
eventdev: allocate max space for internal arrays

Allocate max space for internal port, port config, queue config and
link map arrays.
Introduce new macro RTE_EVENT_MAX_PORTS_PER_DEV and set it to max
possible value.
This simplifies the port and queue reconfigure scenarios and will
also allow inline functions to refer pointer to internal port data
without extra checking of current number of configured queues.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
config/rte_config.h
lib/eventdev/rte_eventdev.c
lib/eventdev/rte_eventdev_core.h