phy_support_eee(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– phy_support_eee β€” the Kernel API Manual moment ✨

okay so bestie, welcome to the phy_support_eee(9) page, like, the actual kernel API manual entry, and it's giving "networking but make it energy-efficient" πŸ¦‹


🌸 NAME 🌸

phy_support_eee β€” sets the initial EEE policy configuration, no cap πŸ’…

✨ SYNOPSIS ✨

void phy_support_eee (struct phy_device *phydev );

yep that's the whole thing, she's a void, she returns nothing, she simply does 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the target struct phy_device struct, like, the PHY device you're doing all this for πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” this function configures the initial policy for Energy Efficient Ethernet (EEE) on the specified PHY device, and the whole point is that it influences that EEE capabilities get advertised before the link is established. timing matters, bestie ⏰

call it during PHY registration, okay? specifically by the MAC driver and/or the PHY driver (for SmartEEE PHYs) β€” but only if the MAC supports LPI, or the PHY is capable of compensating for the missing LPI functionality of the MAC. iykyk 🌈

the function sets the default EEE policy parameters, which includes preparing the PHY to advertise EEE capabilities based on hardware support. slay πŸ’…

it also sets the expected configuration for Low Power Idle (LPI) in the MAC driver. and here's the important part, so listen up 🧚 if the PHY framework determines that both local and remote advertisements support EEE, and the negotiated link mode is compatible with EEE, it will set enable_tx_lpi = true. then the MAC driver is expected to act on that setting by enabling the LPI timer if enable_tx_lpi is set. that's the contract, periodt πŸ’€

fr fr, remembering the enable_tx_lpi = true part is the whole vibe check here β€” the MAC driver doesn't get to just ignore it πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./drivers/net/phy/phy_device.c, and then, like, the entire friend group 😭:


k that's the page bestie, go be iconic with your EEE policy πŸ’–βœ¨

this one lives at ./drivers/net/phy, dated October 2026, and it's phy_support_eee(9) β€” mwah, see u in the group chat πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from