__vlan_hwaccel_copy_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __vlan_hwaccel_copy_tag (9) β€” from the Kernel API Manual, bestie πŸ’…

Okay so picture this: you got two skbs and one of them has hardware-accelerated VLAN info and the other one… doesn't. Tragic. This little function is the fix. It literally copies that hardware accelerated VLAN info from another skb. Iconic behavior, no notes. πŸŽ€


✨ NAME ✨

__vlan_hwaccel_copy_tag β€” copy hardware accelerated VLAN info from another skb


πŸ¦‹ SYNOPSIS πŸ¦‹

void __vlan_hwaccel_copy_tag (struct sk_buff *dst , const struct sk_buff *src );

πŸ’– ARGUMENTS πŸ’–

  • dst β€” the skbuff you're copying to, aka the glow-up recipient ✨
  • src β€” the skbuff you're copying from, aka the one with the goods 🫢

🌈 DESCRIPTION 🌈

It copies the VLAN information from src into dst. That's the whole vibe. And the reason it exists as its own little function? For branchless code, bestie β€” no cap, that's literally the stated purpose. 🌟


πŸ‘‘ SEE ALSO πŸ‘‘

If you're obsessed (and you should be), go read the kernel file ./include/linux/if_vlan.h and then go feral on these:


fr fr, that's a whole reading list β€” but iykyk, every single one of them eats πŸ’…πŸ”₯

And that's the page, bestie!! 🧚 This one lives in ./include/linux and it's dated October 2026 πŸ’œ β€” go forth and copy those tags, you absolute main character. β­πŸ“

πŸ“¦ where this page comes from