VLAN(3)
π rte_table_action_encap_config
okay so bestie, welcome to the glow-up of rte_table_action_encap_config β your new fave struct, from the rte_table_...ncap_config(3) page in the Library Functions Manual. it's giving "encap action configuration, but make it fashion" and honestly? she ate. π
β¨ NAME β¨
rte_table_action_encap_config β the struct that holds all your packet-encapsulation settings, per table action profile. no cap. π
β¨ SYNOPSIS β¨
#include <rte_table_action.h>
π¦ Data Fields
uint64_t encap_mask
union {
struct {
uint32_t data_offset
int vlan
int ip_version
} vxlan
};
β¨ Detailed Description β¨
it's the encap action configuration (per table action profile, iykyk). that's the whole vibe.
π Definition at line 500 of file rte_table_action.h.
β¨ Field Documentation β¨
π§ uint64_t encap_mask
the bit mask that defines the whole set of packet encapsulations enabled for the current table action profile. here's the tea β: if bit (1 << N) is set in encap_mask, then packet encapsulation N is enabled β and if it's not set, it's disabled. periodt.
See also: enum rte_table_action_encap_type
π Definition at line 507 of file rte_table_action.h.
πΈ uint32_t data_offset
this is your input packet to be encapsulated β¨ β specifically, the offset within the input packet buffer to the start of the Ethernet frame to be encapsulated. and heads up, bestie: offset 0 points to the first byte of the MBUF structure. yes, literally byte zero. don't forget it. π
π Definition at line 517 of file rte_table_action.h.
π¦ int vlan
encapsulation header behaviour check π: non-zero when the encapsulation header includes a VLAN tag, zero otherwise. simple as that, fr fr.
π Definition at line 522 of file rte_table_action.h.
π int ip_version
the IP version of the IP header within the encapsulation header. and the mapping is kinda iconic in how it flips what you'd expect: non-zero for IPv4, zero for IPv6. yes for real. write it down. π
π Definition at line 528 of file rte_table_action.h.
π struct { ... } vxlan
VXLAN-specific configuration. she's a struct, she's nested, she's slaying. π
β union { ... }
encapsulation type specific configuration β i.e. the union where each encapsulation type gets to have its own lil moment. β¨
π Author
Generated automatically by Doxygen for DPDK from the source code. (not a human, just a robot doing robot things, but we stan the automation π«Ά)
and that's the whole page, bestie!! π this cutie came to you from DPDK, Version 26.03.0 β go forth and encapsulate responsibly. mwah. πβ¨π¦
π¦ 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