ice_phy_calc_pmd_adj_e82x(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ice_phy_calc_pmd_adj_e82x β€” Calculate PMD adjustment for Rx

okay so this is a page from the Kernel API Manual (yes, the fancy one), and it's all about one little function that does math so your Rx timestamps line up properly. slay.


✨ SYNOPSIS ✨

int ice_phy_calc_pmd_adj_e82x (struct ice_hw *hw , u8 port , enum
       ice_ptp_link_spd link_spd , enum ice_ptp_fec_mode fec_mode , u64
       *pmd_adj );

πŸŽ€ ARGUMENTS πŸŽ€

okay bestie, here's who's showing up to the function call party:

  • hw β€” pointer to the HW struct. your main character, the hardware itself πŸ’…
  • port β€” the PHY port to adjust for. which port are we fixing up? this one 🫢
  • link_spd β€” the current link speed of the PHY. speed check, literally
  • fec_mode β€” the current FEC mode of the PHY. icon behavior, honestly
  • pmd_adj β€” on return, the amount to adjust the Rx total offset by. this is the output, the whole point, the moment ✨

🌸 DESCRIPTION 🌸

So what does it actually do? It calculates the adjustment to Rx timestamps due to PMD alignment in the PHY. no cap.

And the way that this varies by link speed and FEC mode? very demure, very mindful. πŸ¦‹ Different speeds and different FEC modes give you different numbers, and that's just how it is.

The value it calculates accounts for various delays caused when receiving a packet. so like, the packet shows up and there's ✨journey✨ involved before it's stamped β€” this function does the math for all of that. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c β€” that's where the source lives, iykyk πŸ’œ

and now the friend group, the whole entire extended fam, everybody in the group chat:


like, that's a lot of siblings, but every single one of them is iconic and they all deserve a shoutout 🫢

🧚 sign-off 🧚

this little masterpiece lives in ./drivers/net/ethernet/intel/ice, and it's dated October 2026 β€” yes bestie, from the future, periodt. πŸ’…βœ¨

ice_phy_calc_pmd_adj_e82x(9) β€” ate and left absolutely no crumbs 🌈⭐

πŸ“¦ where this page comes from