__vlan_hwaccel_put_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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, iykyk
  • vlan_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:


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