STRUCT VLAN_PRIORITY_TCI_MAPPING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vlan_priority_tci_mapping (9) β€” Kernel API Manual

okay bestie, so we're in the Kernel API Manual today and the star of the show is struct vlan_priority_tci_mapping πŸ’– like yes she's a struct, yes she's iconic, and yes she's about to make vlan egress priority mappings make sense to you. no cap.


✨ NAME ✨

struct vlan_priority_tci_mapping β€” vlan egress priority mappings πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

struct vlan_priority_tci_mapping {
    u32 priority;
    u16 vlan_qos;
    struct vlan_priority_tci_mapping *next;
    struct rcu_head                 rcu;
 };

she's little, she's curated, she's giving main character energy in <linux/if_vlan.h> 🌸


πŸ‘‘ Members πŸ‘‘

  • priority β€” the skb priority, periodt. this is the value you're matching against πŸ’«
  • vlan_qos β€” the vlan priority, and the exact formula is literally this: (skb->priority << 13) & 0xE000. write it down bestie, it's giving math class but make it networking πŸ”₯
  • next β€” pointer to next struct. it's a linked list moment, iykyk πŸ”—
  • rcu β€” used for deferred freeing of mapping nodes. so when these nodes gotta go, RCU handles the goodbye, no dramatic exits needed πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/linux/if_vlan.h β€” go read her, she ate πŸ“

like, the whole vlan friend group showed up πŸ’œπŸ«Ά


ngl, this page comes straight out of ./include/linux and it's dated October 2026, filed under struct vlan_..._tci_mapping(9). that's the vibe check, bestie β€” now go forth and map those priorities βœ¨πŸ’…
πŸ“¦ where this page comes from