diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-03 17:50:27 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-03-30 12:39:00 +0100 |
commit | 7ab23c72777424fffd839aa4bc90adf5c84e7aff (patch) | |
tree | fe37dcdc60b78efb596b1d1ece7b544f45454469 /include | |
parent | 5510b32e3bc38585cbdeb73a1b49f9337ec5f772 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/linkmode.h | 2 |
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 */ |