structrte_mempool*pool
Buffer pool. Must be valid.
Definition at line 26 of file rte_swx_port_source_sink.h.
constchar*file_name
Name of a valid PCAP file to read the input packets from.
Definition at line 29 of file rte_swx_port_source_sink.h.
uint64_tn_loops
Number of times to loop through the input PCAP file. Loop infinite times when set to 0.
Definition at line 34 of file rte_swx_port_source_sink.h.
uint32_tn_pkts_max
Maximum number of packets to read from the PCAP file. When 0, it is internally set to
RTE_SWX_PORT_SOURCE_PKTS_MAX. Once read from the PCAP file, the same packets are looped forever.
Definition at line 40 of file rte_swx_port_source_sink.h.