i40e_ptp_rx_hwtstamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i40e_ptp_rx_hwtstamp ✨

okay so this is a page from the Kernel API Manual and honestly? it's a little baddie. it's all about i40e_ptp_rx_hwtstamp, the utility function that checks for an Rx timestamp πŸ’… get comfy, bestie, we're going stamp shopping.


🌸 NAME 🌸

i40e_ptp_rx_hwtstamp β€” the utility function that checks for an Rx timestamp. that's it, that's the vibe check πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void i40e_ptp_rx_hwtstamp (struct i40e_pf *pf , struct sk_buff *skb , u8
index );

like, three args, void return, no drama. periodt ✨


πŸ’– ARGUMENTS πŸ’–

  • pf β€” the board private structure 🫢 she's the main character here, the whole board's business lives inside her.
  • skb β€” the particular skb we're gonna send the timestamp with. it's this one, not some other one, iykyk 🌈
  • index β€” an index into the receive timestamp registers for the timestamp ⭐ think of it as a little map pin telling you which register slot has your timestamp in it.

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the lore πŸ“ The XL710 receives a notification in the receive descriptor with an offset into the set of RXTIME registers where the timestamp is for that skb.

this function? she goes and fetches the receive timestamp from that offset, if a valid one exists β€” so like, no valid timestamp, no timestamp, that's the rule πŸ˜­πŸ”

and the RXTIME registers are in ns, so we must convert the result first. literally cannot skip that step, no cap. nanosecond girlies need a conversion before they can hang πŸ’€βœ¨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ptp.c

and the whole friend group, all of them, every single one, we love a full roster πŸ‘‘:


and that's the whole page, bestie πŸ’œ this cutie comes to you straight from ./drivers/net/ethernet/intel/i40e, dated October 2026, and it's filed under i40e_ptp_rx_hwtstamp(9). slay, go read your timestamps 🧚🌸

πŸ“¦ where this page comes from