net/bnxt: fix null dereference in session cleanup
[dpdk.git] / lib / port / rte_swx_port_ring.h
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 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 /**
13  * @file
14  * RTE SWX Ring Input and Output Ports
15  ***/
16
17 #include <stdint.h>
18
19
20 #include "rte_swx_port.h"
21
22 /** Ring input port (reader) creation parameters. */
23 struct rte_swx_port_ring_reader_params {
24         /** Name of valid RTE ring. */
25         const char *name;
26
27         /** Read burst size. */
28         uint32_t burst_size;
29 };
30
31 /** Ring_reader operations. */
32 extern struct rte_swx_port_in_ops rte_swx_port_ring_reader_ops;
33
34 /** Ring output port (writer) creation parameters. */
35 struct rte_swx_port_ring_writer_params {
36         /** Name of valid RTE ring. */
37         const char *name;
38
39         /** Read burst size. */
40         uint32_t burst_size;
41 };
42
43 /** Ring writer operations. */
44 extern struct rte_swx_port_out_ops rte_swx_port_ring_writer_ops;
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* __INCLUDE_RTE_SWX_PORT_RING_H__ */