STRUCT VLAN_PRIORITY_TCI_MAPPING(9)
π 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 π
struct vlan_ethhdr(9)struct vlan_pcpu_stats(9)struct vlan_dev_priv(9)eth_type_vlan(9)__vlan_insert_inner_tag(9)__vlan_insert_tag(9)vlan_insert_inner_tag(9)vlan_insert_tag(9)vlan_insert_tag_set_proto(9)__vlan_hwaccel_clear_tag(9)__vlan_hwaccel_copy_tag(9)__vlan_hwaccel_put_tag(9)__vlan_get_tag(9)__vlan_hwaccel_get_tag(9)vlan_get_tag(9)vlan_get_protocol_offset_inline(9)vlan_get_protocol(9)vlan_remove_tag(9)skb_vlan_tagged(9)skb_vlan_tagged_multi(9)vlan_features_check(9)compare_vlan_header(9)
like, the whole vlan friend group showed up ππ«Ά
ngl, this page comes straight out of./include/linuxand it's dated October 2026, filed understruct vlan_..._tci_mapping(9). that's the vibe check, bestie β now go forth and map those priorities β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms