]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commitcf07b28d87578ac5c8e81d29422675f86e4be83b
treeaed4a348e9979c5d6b09f4c6db4d8d6337176dbc
parent047ea76d98a1b61b44d96697b3b6b6b63d1ce648
net: phylink: Fix flow control resolution

BugLink: https://bugs.launchpad.net/bugs/1845266
[ Upstream commit 63b2ed4e10b2e6c913e1d8cdd728e7fba4115a3d ]

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: 9525ae83959b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/phy/phylink.c