1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
5 #ifndef __INCLUDE_RTE_PORT_ETHDEV_H__
6 #define __INCLUDE_RTE_PORT_ETHDEV_H__
14 * RTE Port Ethernet Device
16 * ethdev_reader: input port built on top of pre-initialized NIC RX queue
17 * ethdev_writer: output port built on top of pre-initialized NIC TX queue
25 /** ethdev_reader port parameters */
26 struct rte_port_ethdev_reader_params {
30 /** NIC RX queue ID */
34 /** ethdev_reader port operations */
35 extern struct rte_port_in_ops rte_port_ethdev_reader_ops;
37 /** ethdev_writer port parameters */
38 struct rte_port_ethdev_writer_params {
42 /** NIC RX queue ID */
45 /** Recommended burst size to NIC TX queue. The actual burst size can be
46 bigger or smaller than this value. */
50 /** ethdev_writer port operations */
51 extern struct rte_port_out_ops rte_port_ethdev_writer_ops;
53 /** ethdev_writer_nodrop port parameters */
54 struct rte_port_ethdev_writer_nodrop_params {
58 /** NIC RX queue ID */
61 /** Recommended burst size to NIC TX queue. The actual burst size can be
62 bigger or smaller than this value. */
65 /** Maximum number of retries, 0 for no limit */
69 /** ethdev_writer_nodrop port operations */
70 extern struct rte_port_out_ops rte_port_ethdev_writer_nodrop_ops;