linkmode_resolve_pause(9)
okay bestie, welcome to the Kernel API Manual π this page is all about linkmode_resolve_pause, and it's literally the main character of flow control resolution. no cap, it's giving "let's figure out if we should pause" energy β¨
πΈ NAME πΈ
linkmode_resolve_pause β resolve the allowable pause modes. periodt π
β¨ SYNOPSIS β¨
void linkmode_resolve_pause (const unsigned long *local_adv , const
unsigned long *partner_adv , bool *tx_pause , bool *rx_pause );
π ARGUMENTS π
local_advβ your local advertisement, in ethtool format. it's giving "this is what I'm bringing to the link" β¨partner_advβ the link partner's advertisement, also in ethtool format. basically their side of the story πtx_pauseβ a pointer to aboolthat indicates whether transmit pause should be enabled. so like, should we pause on transmit? this bool holds the answer π«Άrx_pauseβ a pointer to aboolthat indicates whether receive pause should be enabled. same vibe, but for receive π
π DESCRIPTION π
so the tea is: flow control gets resolved according to our advertisement and the link partner's advertisement, using the following table drawn from the 802.3 specs. this is literally the blueprint, bestie π§
Local device Link partner Result
Pause AsymDir Pause AsymDir
0 X 0 X Disabled
0 1 1 0 Disabled
0 1 1 1 TX
1 0 0 X Disabled
1 X 1 X TX+RX
1 1 0 1 RX
like, the way that table just tells you the whole story? iconic. π₯
π¦ SEE ALSO π¦
- kernel file
./drivers/net/phy/linkmode.cβ go read it, iykyk π linkmode_set_pause(9)β the sibling function, also slay π
source: ./drivers/net/phy, October 2026, page: linkmode_resolve_pause(9) β love u, bye bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms