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
20 #include "rte_swx_port.h"
22 /** fd_reader port parameters */
23 struct rte_swx_port_fd_reader_params {
24 /** File descriptor. Must be valid and opened in non-blocking mode. */
27 /** Maximum Transfer Unit (MTU) */
30 /** Pre-initialized buffer pool */
31 struct rte_mempool *mempool;
37 /** fd_reader port operations */
38 extern struct rte_swx_port_in_ops rte_swx_port_fd_reader_ops;
40 /** fd_writer port parameters */
41 struct rte_swx_port_fd_writer_params {
42 /** File descriptor. Must be valid and opened in non-blocking mode. */
49 /** fd_writer port operations */
50 extern struct rte_swx_port_out_ops rte_swx_port_fd_writer_ops;
56 #endif /* __INCLUDE_RTE_SWX_PORT_FD_H__ */