ice_xdp_rx_hw_ts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 here
  • ts_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 πŸ‘‘:


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