]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit45c767faef151899ac1a5e14a59c0e0a5bdba27b
tree5a8a490ac0c9ee68b1cfcfa5bdf675ec4bf730d5
parenta87ae8a963bde755b0962bcc18db83d611f63e7a
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