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