rte_port_source_params(3)
β¨ rte_port_source_params β¨
okay bestie, gather round, because this one is literally a lil struct that tells DPDK where to get its packets from π it's a manual page for rte_port_source_params and honestly it's giving "small but mighty" energy π
πΈ SYNOPSIS πΈ
#include <rte_port_source_sink.h>
Data Fields
struct rte_mempool * mempoolconst char * file_nameuint32_t n_bytes_per_pkt
π Detailed Description π
so this is the source port parameters situation β the whole vibe of the struct, no cap π¦
fr fr, it's defined at line 23 of the file rte_port_source_sink.h. that's it, that's the definition, iconic π
π§ Field Documentation π§
struct rte_mempool* mempool
that's your pre-initialized buffer pool π§ like, she's already ready, you don't gotta set her up, she's been set up β¨
defined at line 25 of the file rte_port_source_sink.h.
const char* file_name
the full path</> of the pcap file you're pulling packets from π β full path, bestie, not "somewhere in my downloads folder", like the whole path, okay? π
defined at line 28 of the file rte_port_source_sink.h.
uint32_t n_bytes_per_pkt
how many bytes get read from each packet in that pcap file π and the rules are cute:
- if this value is
0, the whole packet is read β yes, all of it, the full serve π - if it's bigger than the packet size, the generated packets will contain the whole packet β so no weird truncation nonsense, you just get the packet π«Ά
defined at line 33 of the file rte_port_source_sink.h.
π Author π
generated automatically by Doxygen for DPDK, straight from the source code π like, the docs wrote themselves, we love an independent queen.
and that's the tea π this page came to you courtesy of DPDK, Version 25.11.3 β rte_port_source_params(3), no cap, go read some pcap files bestie πβ
π¦ 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