RTE_TABLE_ACTION_ENCAP_PARAMS(3)
β¨ NAME β¨
rte_table_action_encap_params β bestie, this is the struct that holds your encap action params, one set per table rule π
It lives in the DPDK library functions manual, and it's genuinely just a little container of vibes: you pick a type, and then one of a bunch of nested structs becomes the valid one. Which one? Depends on the type, babe. We'll get there π«Ά
β¨ SYNOPSIS β¨
Pull it in like this, no cap:
#include <rte_table_action.h>
π Data Fields π
enum rte_table_action_encap_type type
That's the headline field, and yeah β the rest of the struct is basically "which of these is real depends on type" energy. Main character energy, honestly π
πΈ DETAILED DESCRIPTION πΈ
Encap action parameters, scoped per table rule. Periodt. That's the whole deal β every table rule that does an encap action gets its own lil bundle of params, and this struct is the bundle π
Definition at line 544 of file rte_table_action.h. (Yes bestie, we cite our sources β¨)
π FIELD DOCUMENTATION π
π enum rte_table_action_encap_type type
Encapsulation type. This is the field that decides which of the structs below is even valid β so like, read this one first, okay? It's giving "choose your own adventure" π
Definition at line 546 of file rte_table_action.h.
π¦ struct rte_table_action_encap_ether_params ether
Only valid when type is set to Ether. Not the moment otherwise, sweetie π
Definition at line 550 of file rte_table_action.h.
π¦ struct rte_table_action_encap_vlan_params vlan
Only valid when type is set to VLAN. Set your type correctly or this is just decoration, ngl π
Definition at line 553 of file rte_table_action.h.
π¦ struct rte_table_action_encap_qinq_params qinq
Only valid when type is set to QinQ. Double the tag, double the drama π
Definition at line 556 of file rte_table_action.h.
π¦ struct rte_table_action_encap_mpls_params mpls
Only valid when type is set to MPLS. Labels on labels, we love a stacked situation π
Definition at line 559 of file rte_table_action.h.
π¦ struct rte_table_action_encap_pppoe_params pppoe
Only valid when type is set to PPPoE. Session girlies, this one's for you πΈ
Definition at line 562 of file rte_table_action.h.
π¦ struct rte_table_action_encap_vxlan_params vxlan
Only valid when type is set to VXLAN. Tunneling? In this economy? Iconic π₯
Definition at line 565 of file rte_table_action.h.
π¦ struct rte_table_encap_ether_qinq_pppoe qinq_pppoe
Only valid when type is set to QinQ_PPPoE. And yes β the struct type here is literally spelled rte_table_encap_ether_qinq_pppoe, not ..._encap_qinq_pppoe_params. That's not me being cutesy, that's the actual name. Copy it exactly or the compiler will simply end you π
Definition at line 568 of file rte_table_action.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. So likeβ¦ nobody wrote this, it manifested. Slay I guess β¨
Okay and that's the whole page, bestie! This manual page came to you from DPDK, Version 25.11.3 π Now go set that type field correctly before you touch any of the other structs, fr fr. Love u, bye! π¦π
π¦ 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