rte_graph_...e_register(3)
πΈ rte_graph_feature_register π
Okay bestie, so this page is literally about rte_graph_feature_register, and it's from the Library Functions Manual section of the DPDK docs β yes, the rte_graph_...e_register(3) one, we're doing it, we're here π«Ά
β¨ NAME β¨
rte_graph_feature_register β the struct that holds everything about a feature you're registering. Iconic. No notes.
π¦ SYNOPSIS π¦
#include <rte_graph_feature_arc.h>
π Public Member Functions
STAILQ_ENTRY (rte_graph_feature_register) next_featureβ the little link that points to the next feature in the same arc π«
π Data Fields
const char * arc_nameconst char * feature_namerte_node_t feature_node_idrte_node_process_t feature_process_fnstruct rte_node_register * feature_nodeconst char * runs_afterconst char * runs_beforerte_graph_feature_override_index_cb_t override_index_cbrte_graph_feature_change_notifier_cb_t notifier_cb
π Detailed Description π
It's the feature registration structure you hand over to RTE_GRAPH_FEATURE_REGISTER(). That's it, that's the whole vibe.
Fr fr, it lives at Definition at line 237 of file rte_graph_feature_arc.h.
π₯ Member Function Documentation π₯
β STAILQ_ENTRY (rte_graph_feature_register )
Pointer to the next registered feature in the same arc. Like, "who's next in line, bestie?" energy π§
π Field Documentation π
πΈ const char* arc_name
Name of the arc β and the arc is registered either via RTE_GRAPH_FEATURE_ARC_REGISTER() or via rte_graph_feature_arc_create(). Pick your fighter β¨
Definition at line 247 of file rte_graph_feature_arc.h.
π const char* feature_name
Name of the feature. Literally just the name π
Definition at line 250 of file rte_graph_feature_arc.h.
π« rte_node_t feature_node_id
Node id of feature_node.
Setting this field can be skipped if you're registering the feature via RTE_GRAPH_FEATURE_REGISTER() β so yeah, optional, you don't have to π
Definition at line 258 of file rte_graph_feature_arc.h.
π¦ rte_node_process_t feature_process_fn
The feature node's process() function β it's the one calling the feature fast path APIs. Very main character.
If the application calls rte_graph_feature_arc_init(), then node->process() provided in RTE_NODE_REGISTER() gets overwritten by this function. Not me warning you about the overwrite π
Definition at line 267 of file rte_graph_feature_arc.h.
π struct rte_node_register* feature_node
Pointer to the Feature node registration. π«Ά
Used when features are registered via RTE_GRAPH_FEATURE_REGISTER().
Definition at line 275 of file rte_graph_feature_arc.h.
β const char* runs_after
Feature ordering constraint runs_after: the name of the feature after which "this feature" should run.
Definition at line 280 of file rte_graph_feature_arc.h.
π
const char* runs_before
Feature ordering constraint runs_before: the name of the feature which must run after "this feature".
Definition at line 285 of file rte_graph_feature_arc.h.
π rte_graph_feature_override_index_cb_t override_index_cb
Lets each feature registration override arc->max_indexes. Highkey powerful.
If it's set, struct rte_graph_feature_arc_register::max_indexes gets calculated like this (and this happens before calling rte_graph_feature_arc_create()):
FOR_EACH_FEATURE_REGISTER(arc, feat) {
rte_graph_feature_arc_register::max_indexes =
max(feat->override_index_cb(),
rte_graph_feature_arc_register::max_indexes) }
Definition at line 298 of file rte_graph_feature_arc.h.
π rte_graph_feature_change_notifier_cb_t notifier_cb
Callback for notifying any change in feature enable/disable state. Basically a little "hey bestie, something changed" ping π
Definition at line 303 of file rte_graph_feature_arc.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. Not a human, but honestly slaying anyway π
π That's the whole page! Signing off with the deets: this is DPDK, Version 26.03.0 β periodt. Go register some features, bestie π§ββοΈβ¨
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms