__vlan_hwaccel_put_tag(9)
π
__vlan_hwaccel_put_tag(9) β Kernel API Manual, bestie edition
okay so real talk, this is a page from the Kernel API Manual, and it's about __vlan_hwaccel_put_tag β which is hardware accelerated VLAN inserting β¨ like yes it's a mouthful but it is also iconic.
β¨ NAME β¨
__vlan_hwaccel_put_tag β hardware accelerated VLAN inserting π
π¦ SYNOPSIS π¦
void __vlan_hwaccel_put_tag (struct sk_buff *skb , __be16 vlan_proto ,
u16 vlan_tci );
she takes three things and returns nothing (a void, no cap) π
πΈ ARGUMENTS πΈ
skbβ the skbuff to tag, aka the little packet main character we're about to decorate π«Άvlan_protoβ VLAN encapsulation protocol, iykykvlan_tciβ VLAN TCI to insert, that's the one going in π
π DESCRIPTION π
Puts the VLAN TCI in skb->vlan_tci and lets the device do the rest πβ¨
that's it, that's the whole vibe β you stash the tag, the hardware handles the heavy lifting, slay.
π SEE ALSO π
Kernel file ./include/linux/if_vlan.h and honestly the whole friend group:
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_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)
ngl this page lives in./include/linux, dated October 2026, and it's literally all under the__vlan_hwaccel_put_tag(9)banner ππ·οΈ
okay bye bestie, go tag those packets π§ββοΈπΈπ
π¦ 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