ice_xdp_rx_vlan_tag(9)
π 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, basicallyvlan_protoβ destination address for the VLAN protocol π she's where the protocol goesvlan_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:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_txrx_lib.cπ ice_release_rx_desc(9)ice_get_rx_hash(9)ice_rx_hash_to_skb(9)ice_rx_gcs(9)ice_rx_csum(9)ice_ptp_rx_hwts_to_skb(9)ice_get_ptype(9)ice_process_skb_fields(9)ice_receive_skb(9)ice_clean_xdp_tx_buf(9)ice_clean_xdp_irq(9)__ice_xmit_xdp_ring(9)ice_finalize_xdp_rx(9)ice_xdp_rx_hw_ts(9)ice_xdp_rx_hash_type(9)ice_xdp_rx_hash(9)
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
- 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