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 * mempool
  • const char * file_name
  • uint32_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