lib: remove librte_ prefix from directory names
[dpdk.git] / lib / port / rte_swx_port_fd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation
3  */
4
5 #ifndef __INCLUDE_RTE_SWX_PORT_FD_H__
6 #define __INCLUDE_RTE_SWX_PORT_FD_H__
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 /**
13  * @file
14  * RTE SWX FD Input and Output Ports
15  *
16  ***/
17 #include <stdint.h>
18
19 #include <rte_mempool.h>
20
21 #include "rte_swx_port.h"
22
23 /** fd_reader port parameters */
24 struct rte_swx_port_fd_reader_params {
25         /** File descriptor. Must be valid and opened in non-blocking mode. */
26         int fd;
27
28         /** Maximum Transfer Unit (MTU) */
29         uint32_t mtu;
30
31         /** Pre-initialized buffer pool */
32         struct rte_mempool *mempool;
33
34         /** RX burst size */
35         uint32_t burst_size;
36 };
37
38 /** fd_reader port operations */
39 extern struct rte_swx_port_in_ops rte_swx_port_fd_reader_ops;
40
41 /** fd_writer port parameters */
42 struct rte_swx_port_fd_writer_params {
43         /** File descriptor. Must be valid and opened in non-blocking mode. */
44         int fd;
45
46         /** TX burst size */
47         uint32_t burst_size;
48 };
49
50 /** fd_writer port operations */
51 extern struct rte_swx_port_out_ops rte_swx_port_fd_writer_ops;
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* __INCLUDE_RTE_SWX_PORT_FD_H__ */