net: phylink: provide mac_get_caps() method
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 16 Oct 2023 15:42:53 +0000 (16:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Oct 2023 00:51:02 +0000 (17:51 -0700)
commitb6f9774719e5601b32f47021b40fee446b356490
treed7fc3f5748e9e1b09d3c8cc3bffb8781168102b6
parent73b24e7ce8f1f47e2b73c9b6724188898f4ca6fd
net: phylink: provide mac_get_caps() method

Provide a new method, mac_get_caps() to get the MAC capabilities for
the specified interface mode. This is for MACs which have special
requirements, such as not supporting half-duplex in certain interface
modes, and will replace the validate() method.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1qsPk5-009wiX-G5@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/sfp-phylink.rst
drivers/net/phy/phylink.c
include/linux/phylink.h