xref: /dpdk/lib/port/rte_swx_port_ring.h (revision 719834a6849e1daf4a70ff7742bbcc3ae7e25607)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation
3  */
4 
5 #ifndef __INCLUDE_RTE_SWX_PORT_RING_H__
6 #define __INCLUDE_RTE_SWX_PORT_RING_H__
7 
8 /**
9  * @file
10  * RTE SWX Ring Input and Output Ports
11  */
12 
13 #include <stdint.h>
14 
15 #include "rte_swx_port.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /** Ring input port (reader) creation parameters. */
22 struct rte_swx_port_ring_reader_params {
23 	/** Name of valid RTE ring. */
24 	const char *name;
25 
26 	/** Read burst size. */
27 	uint32_t burst_size;
28 };
29 
30 /** Ring_reader operations. */
31 extern struct rte_swx_port_in_ops rte_swx_port_ring_reader_ops;
32 
33 /** Ring output port (writer) creation parameters. */
34 struct rte_swx_port_ring_writer_params {
35 	/** Name of valid RTE ring. */
36 	const char *name;
37 
38 	/** Read burst size. */
39 	uint32_t burst_size;
40 };
41 
42 /** Ring writer operations. */
43 extern struct rte_swx_port_out_ops rte_swx_port_ring_writer_ops;
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* __INCLUDE_RTE_SWX_PORT_RING_H__ */
50