i40e_ptp_hwtstamp_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_ptp_hwtstamp_set β€” like, the whole vibe

okay bestie, so this is a page straight out of the Kernel API Manual, and it's about i40e_ptp_hwtstamp_set. yes it's a mouthful, yes it's iconic, let's get into it πŸŽ€


✨ NAME ✨

i40e_ptp_hwtstamp_set β€” the interface that lets you control the HW timestamping, fr fr πŸ•°οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

int i40e_ptp_hwtstamp_set (struct net_device *netdev , struct
       kernel_hwtstamp_config *config , struct netlink_ext_ack *extack );

like, that's the whole signature, no notes πŸ’…


🌸 ARGUMENTS 🌸

  • netdev β€” the network device structure, aka the main character here πŸ‘‘
  • config β€” the timestamping configuration structure, where all the settings live πŸŽ€
  • extack β€” the netlink extended ack structure, which is literally just there for error reporting 🫢

πŸ’– DESCRIPTION πŸ’–

so basically, this function's whole job is to respond to the user filter requests and make the appropriate hardware changes right here. that's it, that's the tea β˜•

here's the important bit tho: the XL710 cannot support splitting of the Tx/Rx timestamping logic, so you gotta keep track in software of whether to indicate these timestamps or not. software said "i'll remember for you babe" πŸ˜­πŸ’€

also, it is permissible to "upgrade" the user request to a broader filter β€” as long as the user receives the timestamps they care about and the user is notified the filter has been broadened. like, leveling up their request is fine, just tell them, don't be sneaky πŸ™ˆβœ¨


πŸ”₯ SEE ALSO πŸ”₯

like, that's a whole friend group right there, they all ate πŸ’…βœ¨


and that's the page bestie!! brought to you by the fine folks over at ./drivers/net/ethernet/intel/i40e, dated October 2026 β€” slay, periodt, go read some kernel source πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from