examples/l2fwd-event: add infra to split eventdev framework
[dpdk.git] / examples / l2fwd-event / l2fwd_event.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2019 Marvell International Ltd.
3  */
4
5 #ifndef __L2FWD_EVENT_H__
6 #define __L2FWD_EVENT_H__
7
8 #include <rte_common.h>
9 #include <rte_event_eth_rx_adapter.h>
10 #include <rte_event_eth_tx_adapter.h>
11 #include <rte_mbuf.h>
12 #include <rte_spinlock.h>
13
14 #include "l2fwd_common.h"
15
16 struct event_setup_ops {
17 };
18
19 struct l2fwd_event_resources {
20         uint8_t tx_mode_q;
21         struct event_setup_ops ops;
22 };
23
24 void l2fwd_event_resource_setup(struct l2fwd_resources *rsrc);
25 void l2fwd_event_set_generic_ops(struct event_setup_ops *ops);
26 void l2fwd_event_set_internal_port_ops(struct event_setup_ops *ops);
27
28 #endif /* __L2FWD_EVENT_H__ */