diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-09 23:13:51 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-03-30 12:38:58 +0100 |
commit | 5510b32e3bc38585cbdeb73a1b49f9337ec5f772 (patch) | |
tree | 147e3a617aeeaf86a384b8eae8b51616f8932e40 /samples | |
parent | 406e21b10db69e05bd909727fd8b6f4f4866e810 (diff) |
net: add helpers to resolve negotiated flow control
Add a couple of helpers to resolve negotiated flow control. Two helpers
are provided:
- linkmode_resolve_pause() which takes the link partner and local
advertisements, and decodes whether we should enable TX or RX pause
at the MAC. This is useful outside of phylib, e.g. in phylink.
- phy_get_pause(), which returns the TX/RX enablement status for the
current negotiation results of the PHY.
This allows us to centralise the flow control resolution, rather than
spreading it around.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions