ice_xdp_rx_hw_ts(9)
π ice_xdp_rx_hw_ts(9)
okay so bestie, welcome to the Kernel API Manual β yes we're literally in the kernel docs rn and it's giving main character energy β¨ this one's a tiny lil function page but it's iconic in its own way, trust π«Ά
β¨ NAME β¨
ice_xdp_rx_hw_ts β the HW timestamp XDP hint handler π like, it's the go-to girly for handing you the hardware timestamp when XDP asks for it
πΈ SYNOPSIS πΈ
int ice_xdp_rx_hw_ts (const struct xdp_md *ctx , u64 *ts_ns );
that's the whole vibe, no cap β one call, two args, int coming back at ya π
π ARGUMENTS π
ctxβ the XDP buff pointer π so like, the XDP buffer itself, that's what you're passing in herets_nsβ the destination address π― where the timestamp's gonna land, you're literally handing it the drop spot
π¦ DESCRIPTION π¦
okay so the whole thing: it copies the HW timestamp over to the destination address β but only if it's available π like if the hardware timestamp isn't there, don't come for her, she's not gonna conjure one out of thin air, that's just how it is π
so yes: HW timestamp (if available) β the destination address. slay, that's the function. short and iconic, periodt β¨
ngl bestie, the "(if available)" part is doing a lot of heavy lifting here β no timestamp available means no copy, so don't assume you always get one π«Ά
π₯ SEE ALSO π₯
the kernel file, in all its glory:
./drivers/net/ethernet/intel/ice/ice_txrx_lib.c
and the whole friend group of related pages, go give them a read π:
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_hash_type(9)ice_xdp_rx_hash(9)ice_xdp_rx_vlan_tag(9)
and that's a wrap babes π this page lives over in ./drivers/net/ethernet/intel/ice and it's dated October 2026 β mwah, go forth and timestamp responsibly ππ§
π¦ 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