VLAN(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… 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