diff options
author | 2021-11-15 10:00:27 +0000 | |
---|---|---|
committer | 2021-11-15 14:31:00 +0000 | |
commit | 34ae2c09d46a2d0abd907e139b466f798e4095a8 (patch) | |
tree | 3f0348fcaa1c46c3c2c7071c6d938f109ec6d788 /net/core/sock.c | |
parent | net/wan/fsl_ucc_hdlc: fix sparse warnings (diff) | |
download | wireguard-linux-34ae2c09d46a2d0abd907e139b466f798e4095a8.tar.xz wireguard-linux-34ae2c09d46a2d0abd907e139b466f798e4095a8.zip |
net: phylink: add generic validate implementation
Add a generic validate() implementation using the supported_interfaces
and a bitmask of MAC pause/speed/duplex capabilities. This allows us
to entirely eliminate many driver private validate() implementations.
We expose the underlying phylink_get_linkmodes() function so that
drivers which have special needs can still benefit from conversion.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions