diff options
author | 2021-11-30 13:10:06 +0000 | |
---|---|---|
committer | 2021-12-01 18:58:00 -0800 | |
commit | 5938bce4b6e2146d5194badd7ecf0acc6bf877fc (patch) | |
tree | ae3067e3ce2bf96bcb126230336d01dfe506dbe0 /net/core/dev_ioctl.c | |
parent | net: dsa: replace phylink_get_interfaces() with phylink_get_caps() (diff) | |
download | wireguard-linux-5938bce4b6e2146d5194badd7ecf0acc6bf877fc.tar.xz wireguard-linux-5938bce4b6e2146d5194badd7ecf0acc6bf877fc.zip |
net: dsa: support use of phylink_generic_validate()
Support the use of phylink_generic_validate() when there is no
phylink_validate method given in the DSA switch operations and
mac_capabilities have been set in the phylink_config structure by the
DSA switch driver.
This gives DSA switch drivers the option to use this if they provide
the supported_interfaces and mac_capabilities, while still giving them
an option to override the default implementation if necessary.
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions