rte_graph_...c_register(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

ok so you found yourself on the rte_graph_...c_register(3) page in the Library Functions Manual β€” that's the DPDK docs, bestie, and this one is a struct, not a function (the name is lying to you a little, no cap). buckle up, it's giving "everything you need to know about the feature arc registration struct" πŸ’…


✨ NAME ✨

rte_graph_feature_arc_register β€” literally the struct you fill out to register a feature arc. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

#include <rte_graph_feature_arc.h>

🫢 Data Fields 🫢

here's the full cast of characters, in order, no skips:

  • const char * arc_name
  • uint16_t max_features
  • uint16_t max_indexes
  • struct rte_node_register * start_node
  • rte_node_process_t start_node_feature_process_fn
  • struct rte_graph_feature_register * end_feature

πŸ’… Detailed Description πŸ’…

Feature arc registration structure. yes, you're literally registering a whole feature arc with this thing, main character energy fr fr πŸ¦‹

Definition at line 307 of file rte_graph_feature_arc.h.

πŸ¦‹ Field Documentation πŸ¦‹

⭐ const char* arc_name

Name of the feature arc ✨ (yes, the name of the arc, not of the struct, don't get it twisted)

Definition at line 311 of file rte_graph_feature_arc.h.

πŸ”₯ uint16_t max_features

Maximum number of features supported in this feature arc.

okay here's the slay part: this field can be skipped for feature arc registration via RTE_GRAPH_FEATURE_ARC_REGISTER() πŸ™ˆ the API is internally doing the math for you β€” it sets this field by calculating the number of RTE_GRAPH_FEATURE_REGISTER() for every arc registration via RTE_GRAPH_FEATURE_ARC_REGISTER().

so like… you can fill it in, but the API's got you, iykyk 🫢

Definition at line 323 of file rte_graph_feature_arc.h.

πŸ“ uint16_t max_indexes

Maximum number of indexes supported in this feature arc. πŸŽ€ heads up: memory is allocated based on this field, so this one is not the one to leave blank, bestie, it's literally the budget πŸ’€

Definition at line 329 of file rte_graph_feature_arc.h.

🌈 struct rte_node_register* start_node

Start node of this arc. the first one, the opener, the entry point πŸ‘‘

Definition at line 332 of file rte_graph_feature_arc.h.

🧚 rte_node_process_t start_node_feature_process_fn

Feature arc specific process() function for Start node. and check this: if the application calls rte_graph_feature_arc_init(), then start_node->process() is replaced by this function πŸ”₯ so the start node's process gets swapped, iconic behaviour honestly

Definition at line 339 of file rte_graph_feature_arc.h.

πŸ‘‘ struct rte_graph_feature_register* end_feature

End feature node registration. the closer, the finale, the last one out 🌸

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, a little robot did this, and honestly? it ate πŸ€–βœ¨


okay that's the whole page bestie, you're officially an expert on the feature arc registration struct πŸ«ΆπŸ’–

πŸ’€ DPDK Β· Version 26.03.0 Β· that's the source and version, mwah, bye! πŸ’€

πŸ“¦ where this page comes from