1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016 Ethan Zhuang <zhuangwj@gmail.com>.
3 * Copyright(c) 2016 Intel Corporation.
6 #ifndef __INCLUDE_RTE_PORT_KNI_H__
7 #define __INCLUDE_RTE_PORT_KNI_H__
15 * RTE Port KNI Interface
17 * kni_reader: input port built on top of pre-initialized KNI interface
18 * kni_writer: output port built on top of pre-initialized KNI interface
28 /** kni_reader port parameters */
29 struct rte_port_kni_reader_params {
30 /** KNI interface reference */
34 /** kni_reader port operations */
35 extern struct rte_port_in_ops rte_port_kni_reader_ops;
38 /** kni_writer port parameters */
39 struct rte_port_kni_writer_params {
40 /** KNI interface reference */
42 /** Burst size to KNI interface. */
46 /** kni_writer port operations */
47 extern struct rte_port_out_ops rte_port_kni_writer_ops;
49 /** kni_writer_nodrop port parameters */
50 struct rte_port_kni_writer_nodrop_params {
51 /** KNI interface reference */
53 /** Burst size to KNI interface. */
55 /** Maximum number of retries, 0 for no limit */
59 /** kni_writer_nodrop port operations */
60 extern struct rte_port_out_ops rte_port_kni_writer_nodrop_ops;