rte_graph_...c_register(3)
β¨ NAME β¨
rte_graph_feature_arc_register β bestie, this is the struct that registers a whole feature arc, and she's kind of a big deal π
π¦ SYNOPSIS π¦
Heads up, this page lives in the Library Functions Manual section of the DPDK docs, so it's giving "official reference" energy, but we're gonna make it cute. First things first, you gotta include her:
#include <rte_graph_feature_arc.h>
π Data Fields π
Okay so this struct has exactly these members, no more no less:
const char * arc_nameuint16_t max_featuresuint16_t max_indexesstruct rte_node_register * start_noderte_node_process_t start_node_feature_process_fnstruct rte_graph_feature_register * end_feature
πΈ Detailed Description πΈ
It's the Feature arc registration structure. That's the whole vibe, literally. She's the blueprint you hand over so DPDK knows what your feature arc looks like β¨
Defined at line 307 of file rte_graph_feature_arc.h. Yes bestie, we cite our sources here π
π Field Documentation π
π« const char* arc_name
The name of the feature arc. That's it, that's the field. Name her something iconic π
Definition at line 311 of file rte_graph_feature_arc.h.
π uint16_t max_features
The maximum number of features supported in this feature arc.
Here's the tea though: this field can be skipped for feature arc registration via RTE_GRAPH_FEATURE_ARC_REGISTER(). The API internally sets this field for you by calculating the number of RTE_GRAPH_FEATURE_REGISTER() calls for every arc registration done via RTE_GRAPH_FEATURE_ARC_REGISTER(). So likeβ¦ the API does the counting, you just live your life π«Ά
Definition at line 323 of file rte_graph_feature_arc.h.
π¦ uint16_t max_indexes
The maximum number of indexes supported in this feature arc. Important bestie, listen: memory is allocated based on this field, so don't just put a random number in there and hope for the best π
Definition at line 329 of file rte_graph_feature_arc.h.
β struct rte_node_register* start_node
The start node of this arc. Where the whole journey begins, main character energy fr fr π
Definition at line 332 of file rte_graph_feature_arc.h.
π₯ rte_node_process_t start_node_feature_process_fn
A feature arc specific process() function for the Start node. And here's the plot twist: if your application calls rte_graph_feature_arc_init(), then start_node->process() gets replaced by this function. So she's not just a suggestion, she takes over π³
Definition at line 339 of file rte_graph_feature_arc.h.
π struct rte_graph_feature_register* end_feature
The end feature node registration. Every arc needs a destination, and this is hers, periodt π
Definition at line 342 of file rte_graph_feature_arc.h.
π§ Author π§
Generated automatically by Doxygen for DPDK from the source code. Not a human, not a girlie, just a doc generator doing her little thing π€π
okay that's the whole page bb, no cap, you now know everything rte_graph_feature_arc_register has to offer π₯³ thanks for coming to my TED talk, this was DPDK, Version 25.11.3, page rte_graph_...c_register(3) β slay, hydrate, and remember to read your struct docs πβ¨π
π¦ 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