1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
4 #ifndef __INCLUDE_RTE_SWX_PORT_ETHDEV_H__
5 #define __INCLUDE_RTE_SWX_PORT_ETHDEV_H__
13 * RTE SWX Ethernet Device Input and Output Ports
18 #include "rte_swx_port.h"
20 /** Ethernet device input port (reader) creation parameters. */
21 struct rte_swx_port_ethdev_reader_params {
22 /** Name of a valid and fully configured Ethernet device. */
25 /** Ethernet device receive queue ID. */
28 /** Ethernet device receive burst size. */
32 /** Ethernet device reader operations. */
33 extern struct rte_swx_port_in_ops rte_swx_port_ethdev_reader_ops;
35 /** Ethernet device output port (writer) creation parameters. */
36 struct rte_swx_port_ethdev_writer_params {
37 /** Name of a valid and fully configured Ethernet device. */
40 /** Ethernet device transmit queue ID. */
43 /** Ethernet device transmit burst size. */
47 /** Ethernet device writer operations. */
48 extern struct rte_swx_port_out_ops rte_swx_port_ethdev_writer_ops;