]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: Fix flow control resolution
authorStefan Chulski <stefanc@marvell.com>
Thu, 5 Sep 2019 16:46:18 +0000 (19:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 15:26:13 +0000 (17:26 +0200)
commit41c7ae9916d057ff3eb4a9821c6c37a99a0bc980
tree6d3c7ab6dfdbb2f959c40c8f2d6cd8c4a192cfa1
parent6f95b25ae6cd4dd1efb7e211fb288d9b3207d05b
net: phylink: Fix flow control resolution

Regarding to IEEE 802.3-2015 standard section 2
28B.3 Priority resolution - Table 28-3 - Pause resolution

In case of Local device Pause=1 AsymDir=0, Link partner
Pause=1 AsymDir=1, Local device resolution should be enable PAUSE
transmit, disable PAUSE receive.
And in case of Local device Pause=1 AsymDir=1, Link partner
Pause=1 AsymDir=0, Local device resolution should be enable PAUSE
receive, disable PAUSE transmit.

Fixes: 81485403f4ec ("phylink: add phylink infrastructure")
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Reported-by: Shaul Ben-Mayor <shaulb@marvell.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c