FIELDS(3)
β¨ rte_swx_pipeline_table_params β¨
okay so bestie, welcome to the rte_swx_pi...able_params(3) page from the Library Functions Manual β yes the manual name is literally truncated with ... in it, that's not me being lazy, that's just how it's printed on the tin π
this whole page is a struct breakdown from DPDK and it's honestly kind of a serve, buckle up π
πΈ NAME πΈ
rte_swx_pipeline_table_params β the pipeline table parameters struct, and likeβ¦ every single field explained. no skips, no cap π«Ά
π¦ SYNOPSIS π¦
#include <rte_swx_pipeline.h>
π Data Fields π
struct rte_swx_match_field_params * fieldsuint32_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
π§ DESCRIPTION π§
Pipeline table parameters β¨ that's the whole vibe of this struct honestly.
π Definition at line653of filerte_swx_pipeline.h.
π Field Documentation π
π struct rte_swx_match_field_params* fields
The set of match fields for the current table, bestie πΈ and here's the restriction, don't ignore it (iykyk): all the match fields of the current table need to be part of the same struct β meaning 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 your greens with your blues, pick a lane π
π Definition at line659of filerte_swx_pipeline.h.
β uint32_t n_fields
The number of match fields for the current table. and okay so, if you set this to zero? literally no "regular" entries (i.e. entries other than the default entry) can be added to the current table, and the match process always results in a lookup miss π like, it's giving empty vibes only. zero match fields = nothing to match = miss every time, periodt.
π Definition at line666of filerte_swx_pipeline.h.
π¦ const char** action_names
The set of actions for the current table π«Ά that's it, that's the field, she's simple and she's iconic.
π Definition at line669of filerte_swx_pipeline.h.
π int* action_is_for_table_entries
An array of n_actions flags, okay? for each action, the associated flag tells you whether that action can be assigned to regular table entries (when non-zero, i.e. true) or not (when zero, i.e. false) β¨ and when this is set to NULL, it just defaults to true for all the actions. generous queen behavior honestly π
π Definition at line676of filerte_swx_pipeline.h.
π int* action_is_for_default_entry
Another array of n_actions flags, same energy πΈ for each action, the associated flag says whether the action can be assigned to the default table entry (non-zero, i.e. true) or not (zero, i.e. false). and again β when set to NULL, it defaults to true for all actions. she's consistent, we love her π
π Definition at line683of filerte_swx_pipeline.h.
π₯ uint32_t n_actions
The number of actions for the current table. Must be at least one. yes bestie, minimum one, this is not a zero-actions situation, that's the rule π«Ά
π Definition at line687of filerte_swx_pipeline.h.
π const char* default_action_name
The default table action that gets executed on lookup miss π and it must be one of the table actions included in the action_names β like you can't just make one up, she has to already be on the list, no new girls allowed π
π Definition at line692of filerte_swx_pipeline.h.
πΈ const char* default_action_args
Default action arguments π specified as a string with the format "ARG0_NAME ARG0_VALUE ...". and listen: the number of arguments in this string must match exactly the number of arguments of the default action. exactly. not one more, not one less, no cap π and it must be NULL if the default action does not have any arguments. zero args = NULL, that's the assignment.
π Definition at line699of filerte_swx_pipeline.h.
π§ int default_action_is_const
If non-zero (true), then the default action of the current table cannot be changed π locked in, frozen, no edits. If zero (false), then the default action can be changed in the future with another action from the action_names list β so basically the door's open, you just gotta pick from the list, iykyk π¦
π Definition at line706of filerte_swx_pipeline.h.
π const char* hash_func_name
Hash function name β when it's not set to NULL, it must point to one of the hash functions that were registered for the current pipeline. Ignored by the table implementation when not needed π and when it is needed but it's NULL? the table implementation will select the hash function to use β so she'll pick for you, no stress, main character energy π
π Definition at line713of filerte_swx_pipeline.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code π€β¨ yes bestie, a robot wrote the original and I just gave it a makeover, we stan a machine-generated queen π«Ά
and that's the whole page!! mwah π this iconic little writeup came to you from DPDK, Version 26.03.0, and yes it's filed under rte_swx_pi...able_params(3) β the ... stays, it's part of the brand now π go forth and configure your tables, 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