examples/l3fwd: add framework for event device
[dpdk.git] / examples / l3fwd / l3fwd_event.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2019 Marvell International Ltd.
3  */
4
5 #ifndef __L3FWD_EVENTDEV_H__
6 #define __L3FWD_EVENTDEV_H__
7
8 #include <rte_common.h>
9 #include <rte_eventdev.h>
10 #include <rte_spinlock.h>
11
12 #include "l3fwd.h"
13
14 struct l3fwd_event_resources {
15         uint8_t sched_type;
16         uint8_t enabled;
17         uint8_t eth_rx_queues;
18 };
19
20 struct l3fwd_event_resources *l3fwd_get_eventdev_rsrc(void);
21 void l3fwd_event_resource_setup(void);
22
23 #endif /* __L3FWD_EVENTDEV_H__ */