net: dsa: allow use of phylink managed EEE support
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 10 Feb 2025 10:36:49 +0000 (10:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Feb 2025 02:20:04 +0000 (18:20 -0800)
commitb8927bd44f78eee1e754bb5d8c6db92732cd31dc
tree9b9685fb29ff2f79f9289e4fdf0aa9155f3ecdf4
parent2001d21592e5eb531d23950223eedad55c987db8
net: dsa: allow use of phylink managed EEE support

In order to allow DSA drivers to use phylink managed EEE, we need to
change the behaviour of the DSA's .set_eee() ethtool method.
Implementation of the DSA .set_mac_eee() method becomes optional with
phylink managed EEE as it is only used to validate the EEE parameters
supplied from userspace. The rest of the EEE state management should
be left to phylink.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1thR9l-003vXC-9F@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/user.c