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 * pool
  • const char * file_name
  • uint64_t n_loops
  • uint32_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