ice_xdp_rx_vlan_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_xdp_rx_vlan_tag(9) β€” the kernel API manual, but make it cute

okay so bestie, we're in the ice driver section of the Kernel API Manual, and today's main character is ice_xdp_rx_vlan_tag(9) β€” literally the VLAN tag XDP hint handler. no cap, she's tiny but she matters πŸŽ€


✨ NAME ✨

ice_xdp_rx_vlan_tag β€” VLAN tag XDP hint handler πŸ¦‹

like, her whole job is handing over the VLAN tag deets so the XDP side knows what's up. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

int ice_xdp_rx_vlan_tag (const struct xdp_md *ctx , __be16 *vlan_proto ,
u16 *vlan_tci );

yup, that's the whole signature. three args, one int coming back atcha ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” the XDP buff pointer πŸ’– your little window into the packet, basically
  • vlan_proto β€” destination address for the VLAN protocol 🌈 she's where the protocol goes
  • vlan_tci β€” destination address for the VLAN TCI πŸ’œ and this one's where the TCI goes

like yes, two of these are destination addresses, meaning you're passing in pointers and she writes into them. she's not returning them, she's filling them in. iykyk 🫢


🧚 DESCRIPTION 🧚

Copy VLAN tag (if was stripped) and corresponding protocol to the destination address.

okay so real talk β€” key phrase here is "if was stripped" 😭 she's not out here inventing VLAN tags, she's copying the tag over when it was stripped, plus the protocol that goes with it, straight into the destination address. lowkey the most helpful thing ever and she does it without making it weird.

ngl, that "if was stripped" caveat is doing a lot of lifting β€” it's conditional, bestie, not a guarantee πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

if you're obsessed with her (same), here's the whole friend group β€” go read the kernel file, it's all right there:

fr fr that's the entire guest list, every single one, we do not skip anyone at this party πŸ₯³


and that's the page, bestie!! πŸ“ this whole lil manual lives in ./drivers/net/ethernet/intel/ice and it's dated October 2026 β€” so like, future vibes ✨ slay, go copy some VLAN tags, and remember: she only does it if it was stripped πŸ’… bye mwah 🫢

πŸ“¦ where this page comes from