DPDK
22.11.6
lib
port
rte_swx_port_source_sink.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2020 Intel Corporation
3
*/
4
#ifndef __INCLUDE_RTE_SWX_PORT_SOURCE_SINK_H__
5
#define __INCLUDE_RTE_SWX_PORT_SOURCE_SINK_H__
6
7
#ifdef __cplusplus
8
extern
"C"
{
9
#endif
10
16
#include "
rte_swx_port.h
"
17
19
#ifndef RTE_SWX_PORT_SOURCE_PKTS_MAX
20
#define RTE_SWX_PORT_SOURCE_PKTS_MAX 1024
21
#endif
22
24
struct
rte_swx_port_source_params
{
26
struct
rte_mempool
*
pool
;
27
29
const
char
*
file_name
;
30
34
uint64_t
n_loops
;
35
40
uint32_t
n_pkts_max
;
41
};
42
44
extern
struct
rte_swx_port_in_ops
rte_swx_port_source_ops
;
45
47
struct
rte_swx_port_sink_params
{
52
const
char
*
file_name
;
53
};
54
56
extern
struct
rte_swx_port_out_ops
rte_swx_port_sink_ops
;
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
rte_swx_port.h
rte_swx_port_sink_ops
struct rte_swx_port_out_ops rte_swx_port_sink_ops
rte_swx_port_source_ops
struct rte_swx_port_in_ops rte_swx_port_source_ops
rte_mempool
Definition:
rte_mempool.h:219
rte_swx_port_in_ops
Definition:
rte_swx_port.h:100
rte_swx_port_out_ops
Definition:
rte_swx_port.h:220
rte_swx_port_sink_params
Definition:
rte_swx_port_source_sink.h:47
rte_swx_port_sink_params::file_name
const char * file_name
Definition:
rte_swx_port_source_sink.h:52
rte_swx_port_source_params
Definition:
rte_swx_port_source_sink.h:24
rte_swx_port_source_params::n_loops
uint64_t n_loops
Definition:
rte_swx_port_source_sink.h:34
rte_swx_port_source_params::file_name
const char * file_name
Definition:
rte_swx_port_source_sink.h:29
rte_swx_port_source_params::pool
struct rte_mempool * pool
Definition:
rte_swx_port_source_sink.h:26
rte_swx_port_source_params::n_pkts_max
uint32_t n_pkts_max
Definition:
rte_swx_port_source_sink.h:40
Generated by
1.9.4