1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2021 Intel Corporation
5 #ifndef __INCLUDE_RTE_SWX_PORT_FD_H__
6 #define __INCLUDE_RTE_SWX_PORT_FD_H__
14 * RTE SWX FD Input and Output Ports
19 #include <rte_mempool.h>
21 #include "rte_swx_port.h"
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. */
28 /** Maximum Transfer Unit (MTU) */
31 /** Pre-initialized buffer pool */
32 struct rte_mempool *mempool;
38 /** fd_reader port operations */
39 extern struct rte_swx_port_in_ops rte_swx_port_fd_reader_ops;
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. */
50 /** fd_writer port operations */
51 extern struct rte_swx_port_out_ops rte_swx_port_fd_writer_ops;
57 #endif /* __INCLUDE_RTE_SWX_PORT_FD_H__ */