diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-12-10 17:18:21 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-12 07:29:38 +0300 |
commit | 99379f587278c818777cb4778e2c79c6c1440c65 (patch) | |
tree | 4192c7b61740f762f67327646db338c31d317c44 /include/net | |
parent | 9723a77318b7c0cfd06ea207e52a042f8c815318 (diff) | |
download | linux-99379f587278c818777cb4778e2c79c6c1440c65.tar.xz |
net: dsa: provide implementation of .support_eee()
Provide a trivial implementation for the .support_eee() method which
switch drivers can use to simply indicate that they support EEE on
all their user ports.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/E1tL149-006cZJ-JJ@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index aaa75bbaa0ea..4aeedb296d67 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -1384,5 +1384,6 @@ static inline bool dsa_user_dev_check(const struct net_device *dev) netdev_tx_t dsa_enqueue_skb(struct sk_buff *skb, struct net_device *dev); void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up); +bool dsa_supports_eee(struct dsa_switch *ds, int port); #endif |