diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-09-20 18:12:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-23 11:55:35 +0100 |
commit | 606116529ab2d12e93bf751f74ed50a621b46846 (patch) | |
tree | d428fa797bd1647e033aeaeb0c270090d2e66fcd /include/linux/phylink.h | |
parent | 72bc36956f73ac54f19a7ac7302fb274069bec18 (diff) |
net: phylink: Export phylink_caps_to_linkmodes
This function is convenient for MAC drivers. They can use it to add or
remove particular link modes based on capabilities (such as if half
duplex is not supported for a particular interface mode).
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phylink.h')
-rw-r--r-- | include/linux/phylink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 1f997e14bf80..7cf26d7a522d 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -547,6 +547,7 @@ void pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex); #endif +void phylink_caps_to_linkmodes(unsigned long *linkmodes, unsigned long caps); void phylink_get_linkmodes(unsigned long *linkmodes, phy_interface_t interface, unsigned long mac_capabilities); void phylink_generic_validate(struct phylink_config *config, |