rte_graph_param(3)

🫢 rte_graph_param β€” it's giving "struct energy" πŸ’…

okay bestie, so this is a page from the DPDK docs, section 3 of the library functions manual. It's literally just one little struct that holds all the settings you hand over when you're building a graph. No drama, no cap. Let's get into it. ✨


🌸 NAME 🌸

rte_graph_param β€” the lil configuration box for your graph, and yes she's iconic.


✨ SYNOPSIS ✨

First things first, you gotta pull her in:

#include <rte_graph.h>

πŸŽ€ Data Fields

  • int socket_id
  • uint16_t nb_node_patterns
  • const char ** node_patterns
  • bool pcap_enable
  • uint64_t num_pkt_to_capture
  • char * pcap_filename

πŸ’– Detailed Description πŸ’–

So this struct is the whole vibe: it holds the configuration parameters that you use when you're creating a graph. That's it, that's the job. 🫑

See also: rte_graph_create() β€” go read that one, she's the main character here.

Definition at line 168 of file rte_graph.h.


πŸ¦‹ Field Documentation πŸ¦‹

πŸ‘‘ int socket_id

Where the memory gets allocated β€” the socket id, bestie. That's the whole note.

Definition at line 169 of file rte_graph.h.

πŸŽ€ uint16_t nb_node_patterns

Literally just the number of node patterns you're working with. Count 'em. πŸ’…

Definition at line 170 of file rte_graph.h.

🌈 const char** node_patterns

An array of node patterns, and they're based on shell pattern matching. Yes, fr fr, the glob girlies get it.

Definition at line 171 of file rte_graph.h.

πŸ“ bool pcap_enable

Pcap enable. That's the tea. 🍡

Definition at line 174 of file rte_graph.h.

🧚 uint64_t num_pkt_to_capture

How many packets you wanna capture. Pick your number, no judgment. πŸ”₯

Definition at line 175 of file rte_graph.h.

πŸ’œ char* pcap_filename

The filename where the packets you're capturing are gonna land. Name her something cute.

Definition at line 176 of file rte_graph.h.

🫢 uint64_t rsvd

Reserved for the rtc model. Like, don't touch, it's not for you, it's being saved. πŸ™ˆ

Definition at line 180 of file rte_graph.h.

⭐ uint32_t wq_size_max

The maximum size of the workqueue, specifically for the dispatch model. Big workqueue energy.

Definition at line 183 of file rte_graph.h.

πŸ’… uint32_t mp_capacity

The capacity of the memory pool β€” again, for the dispatch model. She contains multitudes but only up to a point.

Definition at line 184 of file rte_graph.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. No human hand-wrote this and honestly? Slay, robot.


and that's the whole page bestie, we ate 🍽️✨ β€” this one's from DPDK, Version 25.11.3, dated right there at the bottom with the rte_graph_param(3) header energy. go build your graph, i'm obsessed πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from