summaryrefslogtreecommitdiff
path: root/include/linux/linkmode.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-02-15 18:49:32 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-17 06:39:44 +0300
commit45c767faef151899ac1a5e14a59c0e0a5bdba27b (patch)
tree5a8a490ac0c9ee68b1cfcfa5bdf675ec4bf730d5 /include/linux/linkmode.h
parenta87ae8a963bde755b0962bcc18db83d611f63e7a (diff)
downloadlinux-45c767faef151899ac1a5e14a59c0e0a5bdba27b.tar.xz
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>
Diffstat (limited to 'include/linux/linkmode.h')
-rw-r--r--include/linux/linkmode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/linkmode.h b/include/linux/linkmode.h
index 9ec210f31d06..c664c27a29a0 100644
--- a/include/linux/linkmode.h
+++ b/include/linux/linkmode.h
@@ -92,4 +92,6 @@ void linkmode_resolve_pause(const unsigned long *local_adv,
const unsigned long *partner_adv,
bool *tx_pause, bool *rx_pause);
+void linkmode_set_pause(unsigned long *advertisement, bool tx, bool rx);
+
#endif /* __LINKMODE_H */