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>
This commit is contained in:

committed by
David S. Miller

parent
a87ae8a963
commit
45c767faef
@@ -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 */
|
||||
|
Reference in New Issue
Block a user