DEFAULT_ACTION_ARGS(3)
π rte_swx_pipeline_learner_params(3) π
okay so this is a page from the Library Functions Manual, and it's literally all about rte_swx_pipeline_learner_params β yes that's a whole mouthful, bestie, but stay with me because it's actually kind of iconic π
β¨ NAME β¨
rte_swx_pipeline_learner_params β the vibe check for your pipeline learner table params π¦
πΈ SYNOPSIS πΈ
#include <rte_swx_pipeline.h>
π Data Fields
const char ** field_namesuint32_t n_fieldsconst char ** action_namesint * action_is_for_table_entriesint * action_is_for_default_entryuint32_t n_actionsconst char * default_action_nameconst char * default_action_argsint default_action_is_constconst char * hash_func_name
π« DETAILED DESCRIPTION π«
Pipeline learner table parameters. That's it, that's the whole thing β this struct is the little bundle of settings that tells a learner table how to behave. Definition at line 803 of file rte_swx_pipeline.h.
π¦ FIELD DOCUMENTATION π¦
π const char** field_names
The set of match fields for the current table. Here's the catch though, and it's a real one β restriction: all the match fields of the current table need to be part of the same struct, i.e. either all the match fields are part of the same header or all the match fields are part of the meta-data. No mixing, no matching, periodt.
Definition at line 809 of file rte_swx_pipeline.h.
π uint32_t n_fields
The number of match fields for the current table. Must be non-zero β zero is not the move here π
Definition at line 813 of file rte_swx_pipeline.h.
π const char** action_names
The set of actions for the current table. Slay, actions.
Definition at line 816 of file rte_swx_pipeline.h.
π int* action_is_for_table_entries
Array of n_actions flags. For each action, the associated flag indicates whether the action can be assigned to regular table entries (when non-zero, i.e. true) or not (when zero, i.e. false). And when it's set to NULL, it defaults to true for all actions β generous queen behavior ngl π
Definition at line 823 of file rte_swx_pipeline.h.
π int* action_is_for_default_entry
Array of n_actions flags. For each action, the associated flag indicates whether the action can be assigned to the default table entry (when non-zero, i.e. true) or not (when zero, i.e. false). Same deal: when set to NULL, it defaults to true for all actions.
Definition at line 830 of file rte_swx_pipeline.h.
π uint32_t n_actions
The number of actions for the current table. Must be at least one β like, you need some actions, bestie, that's the whole point π
Definition at line 834 of file rte_swx_pipeline.h.
π const char* default_action_name
The default table action that gets executed on lookup miss. Must be one of the table actions included in the action_names. No random stragglers allowed fr fr.
Definition at line 839 of file rte_swx_pipeline.h.
π const char* default_action_args
Default action arguments. Specified as a string with the format "ARG0_NAME ARG0_VALUE ...". The number of arguments in this string must match exactly the number of arguments of the default action β not one more, not one less, this is not a drill π. Must be NULL if the default action does not have any arguments.
Definition at line 846 of file rte_swx_pipeline.h.
π int default_action_is_const
If non-zero (true), then the default action of the current table cannot be changed. If zero (false), then the default action can be changed in the future with another action from the action_names list. Choose your adventure π§
Definition at line 853 of file rte_swx_pipeline.h.
π const char* hash_func_name
Hash function name. When not set to NULL, it must point to one of the hash functions that were registered for the current pipeline. When NULL, the default hash function will be used. iykyk π
Definition at line 859 of file rte_swx_pipeline.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. Not a human, not a bestie, just Doxygen doing its little autogenerated thing π
and that's the whole page, bestie β go forth and configure your learner tables with main character energy π₯
DPDK β Version 26.03.0 Β· rte_swx_pi...rner_params(3) Β· mwah, thanks for reading, ily, bye π«Άβ¨
π¦ 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