diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-10-17 23:22:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-19 15:25:09 +0300 |
commit | f392a1846489720fc2e063d1210633b6cf4ec5a4 (patch) | |
tree | e075a60fe499b635151e0131be7607cc1f332af0 /include/linux/phylink.h | |
parent | 045d05018a2da6cb0944a40f3811fbecce6401c1 (diff) | |
download | linux-f392a1846489720fc2e063d1210633b6cf4ec5a4.tar.xz |
net: phylink: provide phylink_validate_mask_caps() helper
Provide a helper that restricts the link modes according to the
phylink capabilities.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
[rebased on net-next/master and added documentation]
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 664dd409feb9..c29c3f174972 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -556,6 +556,9 @@ void phylink_caps_to_linkmodes(unsigned long *linkmodes, unsigned long caps); unsigned long phylink_get_capabilities(phy_interface_t interface, unsigned long mac_capabilities, int rate_matching); +void phylink_validate_mask_caps(unsigned long *supported, + struct phylink_link_state *state, + unsigned long caps); void phylink_generic_validate(struct phylink_config *config, unsigned long *supported, struct phylink_link_state *state); |