1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2019 Marvell International Ltd.
8 #include <rte_malloc.h>
11 #include "l3fwd_event.h"
13 struct l3fwd_event_resources *
14 l3fwd_get_eventdev_rsrc(void)
16 static struct l3fwd_event_resources *rsrc;
21 rsrc = rte_zmalloc("l3fwd", sizeof(struct l3fwd_event_resources), 0);
23 rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC;
24 rsrc->eth_rx_queues = 1;
28 rte_exit(EXIT_FAILURE, "Unable to allocate memory for eventdev cfg\n");
34 l3fwd_event_resource_setup(void)
36 struct l3fwd_event_resources *evt_rsrc = l3fwd_get_eventdev_rsrc();
38 if (!evt_rsrc->enabled)