]> git.baikalelectronics.ru Git - kernel.git/commit
net: add linkmode helper for setting flow control advertisement
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 15 Feb 2020 15:49:32 +0000 (15:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:39:44 +0000 (19:39 -0800)
commit6c55abe69ef71ac74c062fb9297b3890a0abed31
tree5a8a490ac0c9ee68b1cfcfa5bdf675ec4bf730d5
parentc3e269e9c41121d3ce436713aabdcd885b7c0bea
net: add linkmode helper for setting flow control advertisement

Add a linkmode helper to set the flow control advertisement in an
ethtool linkmode mask according to the tx/rx capabilities. This
implementation is moved from phylib, and documented with an
analysis of its shortcomings.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/linkmode.c
drivers/net/phy/phy_device.c
include/linux/linkmode.h