rte_swx_po...rce_params(3)
β¨ NAME β¨
rte_swx_port_source_params β bestie, this is the receipt for making a source port, like the little info card you gotta fill out π
πΈ SYNOPSIS πΈ
#include <rte_swx_port_source_sink.h>
π Data Fields
struct rte_mempool * poolconst char * file_nameuint64_t n_loopsuint32_t n_pkts_max
π DETAILED DESCRIPTION π
Okay so. This whole page lives in the Library Functions Manual, and it's all about rte_swx_port_source_params β the parameters you hand over when you're creating a source port. Think of it as the vibe check your port has to pass before it exists β¨
It's defined at line 24 of the file rte_swx_port_source_sink.h, no cap.
π¦ FIELD DOCUMENTATION π¦
π struct rte_mempool * pool
Buffer pool. It must be valid β like, this is not a suggestion, bestie, an invalid pool is giving π
Defined at line 26 of the file rte_swx_port_source_sink.h.
π const char * file_name
Name of a valid PCAP file to read the input packets from. That's where your packets come from, periodt.
Defined at line 29 of the file rte_swx_port_source_sink.h.
π uint64_t n_loops
Number of times to loop through the input PCAP file. And here's the lil trick: set it to 0 and it loops infinite times π β main character energy, it literally never stops.
Defined at line 34 of the file rte_swx_port_source_sink.h.
β uint32_t n_pkts_max
Maximum number of packets to read from the PCAP file. When it's 0, it gets internally set to RTE_SWX_PORT_SOURCE_PKTS_MAX (the glow-up is automatic, you don't do anything). And once those packets are read from the PCAP file, the same packets are looped forever β iconic rerun behaviour, fr fr.
Defined at line 40 of the file rte_swx_port_source_sink.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. Not a human girlie writing this one β it's the machine π
That's the whole page, and that's on rte_swx_po...rce_params(3) from DPDK, Version 25.11.3, served up by the Library Functions Manual. Slay, you read the whole thing π«Άβ¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms