__vlan_hwaccel_get_tag(9)
π
__vlan_hwaccel_get_tag β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual, and today's main character is __vlan_hwaccel_get_tag, a lil function whose whole personality is "get the VLAN ID that is in @skb->cb[]". yes that's it. that's the whole vibe. β¨
πΈ NAME πΈ
__vlan_hwaccel_get_tag β literally just here to get the VLAN ID that is in @skb->cb[] π«Ά
β¨ SYNOPSIS β¨
int __vlan_hwaccel_get_tag (const struct sk_buff *skb , u16 *vlan_tci );
like. look at her. she takes two things and returns an int. iconic behavior tbh π
π¦ ARGUMENTS π¦
skbβ the skbuff you're querying, bestie. she's the one being asked the question πvlan_tciβ the buffer where you store the value. bring your own storage fr fr π
π₯ RETURN π₯
returns an error if skb->vlan_tci is not set correctly π like, if the tag isn't set right, that's an error, no cap. not me hoping your tag is set correctly tho π
π SEE ALSO π
all the siblings, cousins, and adjacent lore, all in the Kernel file ./include/linux/if_vlan.h π:
struct vlan_ethhdr(9)struct vlan_pcpu_stats(9)struct vlan_priority_tci_mapping(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_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 genuinely a whole friend group. go say hi to all of them π§ββοΈ
and that's the whole page bestie, no hidden lore, no extra options, nothing sneaky. the tag is either set correctly or it isn't, and she will tell you π
okay bye ily, this page lives in ./include/linux, dated October 2026, and it's from the Kernel API Manual β mwah, slay, periodt πΈπβ
π¦ 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