1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016 Intel Corporation
5 #ifndef __INCLUDE_RTE_PORT_FD_H__
6 #define __INCLUDE_RTE_PORT_FD_H__
16 * fd_reader: input port built on top of valid non-blocking file descriptor
17 * fd_writer: output port built on top of valid non-blocking file descriptor
25 /** fd_reader port parameters */
26 struct rte_port_fd_reader_params {
27 /** File descriptor */
30 /** Maximum Transfer Unit (MTU) */
33 /** Pre-initialized buffer pool */
34 struct rte_mempool *mempool;
37 /** fd_reader port operations */
38 extern struct rte_port_in_ops rte_port_fd_reader_ops;
40 /** fd_writer port parameters */
41 struct rte_port_fd_writer_params {
42 /** File descriptor */
45 /**< Recommended write burst size. The actual burst size can be
46 * bigger or smaller than this value.
51 /** fd_writer port operations */
52 extern struct rte_port_out_ops rte_port_fd_writer_ops;
54 /** fd_writer_nodrop port parameters */
55 struct rte_port_fd_writer_nodrop_params {
56 /** File descriptor */
59 /**< Recommended write burst size. The actual burst size can be
60 * bigger or smaller than this value.
64 /** Maximum number of retries, 0 for no limit */
68 /** fd_writer_nodrop port operations */
69 extern struct rte_port_out_ops rte_port_fd_writer_nodrop_ops;