* [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
@ 2024-12-10 14:17 Russell King (Oracle)
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
` (11 more replies)
0 siblings, 12 replies; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:17 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Arınç ÜNAL,
Daniel Golle, David S. Miller, DENG Qingfang, Eric Dumazet,
Florian Fainelli, Jakub Kicinski, linux-arm-kernel,
linux-mediatek, Matthias Brugger, netdev, Paolo Abeni, Sean Wang,
Simon Horman, UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Hi,
First part of DSA EEE cleanups.
Patch 1 removes a useless test that is always false. dp->pl will always
be set for user ports, so !dp->pl in the EEE methods will always be
false.
Patch 2 adds support for a new DSA support_eee() method, which tells
DSA whether the DSA driver supports EEE, and thus whether the ethtool
set_eee() and get_eee() methods should return -EOPNOTSUPP.
Patch 3 adds a trivial implementation for this new method which
indicates that EEE is supported.
Patches 4..8 adds implementations for .supports_eee() to all drivers
that support EEE in some form.
Patch 9 switches the core DSA code to require a .supports_eee()
implementation if DSA is supported. Any DSA driver that doesn't
implement this method after this patch will not support the ethtool
EEE methods.
Part 2 will remove the (now) useless .get_mac_eee() DSA operation.
drivers/net/dsa/b53/b53_common.c | 13 +++++++------
drivers/net/dsa/b53/b53_priv.h | 1 +
drivers/net/dsa/bcm_sf2.c | 1 +
drivers/net/dsa/microchip/ksz_common.c | 20 +++++---------------
drivers/net/dsa/mt7530.c | 1 +
drivers/net/dsa/mv88e6xxx/chip.c | 1 +
drivers/net/dsa/qca/qca8k-8xxx.c | 1 +
include/net/dsa.h | 2 ++
net/dsa/port.c | 16 ++++++++++++++++
net/dsa/user.c | 12 ++++++++++--
10 files changed, 45 insertions(+), 23 deletions(-)
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported Russell King (Oracle)
` (10 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
When user ports are initialised, a phylink instance is always created,
and so dp->pl will always be non-NULL. The EEE methods are only used
for user ports, so checking for dp->pl to be NULL makes no sense. No
other phylink-calling method implements similar checks in DSA. Remove
this unnecessary check.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
net/dsa/user.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/dsa/user.c b/net/dsa/user.c
index 06c30a9e29ff..0640247b8f0a 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -1229,7 +1229,7 @@ static int dsa_user_set_eee(struct net_device *dev, struct ethtool_keee *e)
int ret;
/* Port's PHY and MAC both need to be EEE capable */
- if (!dev->phydev || !dp->pl)
+ if (!dev->phydev)
return -ENODEV;
if (!ds->ops->set_mac_eee)
@@ -1249,7 +1249,7 @@ static int dsa_user_get_eee(struct net_device *dev, struct ethtool_keee *e)
int ret;
/* Port's PHY and MAC both need to be EEE capable */
- if (!dev->phydev || !dp->pl)
+ if (!dev->phydev)
return -ENODEV;
if (!ds->ops->get_mac_eee)
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 19:34 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee() Russell King (Oracle)
` (9 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Add a hook to determine whether the switch supports EEE. This will
return false if the switch does not, or true if it does. If the
method is not implemented, we assume (currently) that the switch
supports EEE.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
include/net/dsa.h | 1 +
net/dsa/user.c | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 72ae65e7246a..aaa75bbaa0ea 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -988,6 +988,7 @@ struct dsa_switch_ops {
/*
* Port's MAC EEE settings
*/
+ bool (*support_eee)(struct dsa_switch *ds, int port);
int (*set_mac_eee)(struct dsa_switch *ds, int port,
struct ethtool_keee *e);
int (*get_mac_eee)(struct dsa_switch *ds, int port,
diff --git a/net/dsa/user.c b/net/dsa/user.c
index 0640247b8f0a..b54f61605a57 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -1228,6 +1228,10 @@ static int dsa_user_set_eee(struct net_device *dev, struct ethtool_keee *e)
struct dsa_switch *ds = dp->ds;
int ret;
+ /* Check whether the switch supports EEE */
+ if (ds->ops->support_eee && !ds->ops->support_eee(ds, dp->index))
+ return -EOPNOTSUPP;
+
/* Port's PHY and MAC both need to be EEE capable */
if (!dev->phydev)
return -ENODEV;
@@ -1248,6 +1252,10 @@ static int dsa_user_get_eee(struct net_device *dev, struct ethtool_keee *e)
struct dsa_switch *ds = dp->ds;
int ret;
+ /* Check whether the switch supports EEE */
+ if (ds->ops->support_eee && !ds->ops->support_eee(ds, dp->index))
+ return -EOPNOTSUPP;
+
/* Port's PHY and MAC both need to be EEE capable */
if (!dev->phydev)
return -ENODEV;
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee()
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
2024-12-10 14:18 ` [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method Russell King (Oracle)
` (8 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
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>
---
include/net/dsa.h | 1 +
net/dsa/port.c | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
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
diff --git a/net/dsa/port.c b/net/dsa/port.c
index ee0aaec4c8e0..5c9d1798e830 100644
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1575,6 +1575,22 @@ void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp,
cpu_dp->tag_ops = tag_ops;
}
+/* dsa_supports_eee - indicate that EEE is supported
+ * @ds: pointer to &struct dsa_switch
+ * @port: port index
+ *
+ * A default implementation for the .support_eee() DSA operations member,
+ * which drivers can use to indicate that they support EEE on all of their
+ * user ports.
+ *
+ * Returns: true
+ */
+bool dsa_supports_eee(struct dsa_switch *ds, int port)
+{
+ return true;
+}
+EXPORT_SYMBOL_GPL(dsa_supports_eee);
+
static void dsa_port_phylink_mac_config(struct phylink_config *config,
unsigned int mode,
const struct phylink_link_state *state)
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (2 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee() Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
` (7 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Implement the .support_eee() method to indicate that EEE is not
supported by two switch variants, rather than making these checks in
the .set_mac_eee() and .get_mac_eee() methods.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/dsa/b53/b53_common.c | 13 +++++++------
drivers/net/dsa/b53/b53_priv.h | 1 +
drivers/net/dsa/bcm_sf2.c | 1 +
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index 285785c942b0..0561b60f668f 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -2224,13 +2224,16 @@ int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy)
}
EXPORT_SYMBOL(b53_eee_init);
-int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
+bool b53_support_eee(struct dsa_switch *ds, int port)
{
struct b53_device *dev = ds->priv;
- if (is5325(dev) || is5365(dev))
- return -EOPNOTSUPP;
+ return !is5325(dev) && !is5365(dev);
+}
+EXPORT_SYMBOL(b53_support_eee);
+int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
+{
return 0;
}
EXPORT_SYMBOL(b53_get_mac_eee);
@@ -2240,9 +2243,6 @@ int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
struct b53_device *dev = ds->priv;
struct ethtool_keee *p = &dev->ports[port].eee;
- if (is5325(dev) || is5365(dev))
- return -EOPNOTSUPP;
-
p->eee_enabled = e->eee_enabled;
b53_eee_enable_set(ds, port, e->eee_enabled);
@@ -2298,6 +2298,7 @@ static const struct dsa_switch_ops b53_switch_ops = {
.phylink_get_caps = b53_phylink_get_caps,
.port_enable = b53_enable_port,
.port_disable = b53_disable_port,
+ .support_eee = b53_support_eee,
.get_mac_eee = b53_get_mac_eee,
.set_mac_eee = b53_set_mac_eee,
.port_bridge_join = b53_br_join,
diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h
index 05141176daf5..99e5cfc98ae8 100644
--- a/drivers/net/dsa/b53/b53_priv.h
+++ b/drivers/net/dsa/b53/b53_priv.h
@@ -384,6 +384,7 @@ int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
void b53_disable_port(struct dsa_switch *ds, int port);
void b53_brcm_hdr_setup(struct dsa_switch *ds, int port);
int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy);
+bool b53_support_eee(struct dsa_switch *ds, int port);
int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e);
int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e);
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c
index 43bde1f583ff..a53fb6191e6b 100644
--- a/drivers/net/dsa/bcm_sf2.c
+++ b/drivers/net/dsa/bcm_sf2.c
@@ -1232,6 +1232,7 @@ static const struct dsa_switch_ops bcm_sf2_ops = {
.set_wol = bcm_sf2_sw_set_wol,
.port_enable = bcm_sf2_port_setup,
.port_disable = bcm_sf2_port_disable,
+ .support_eee = b53_support_eee,
.get_mac_eee = b53_get_mac_eee,
.set_mac_eee = b53_set_mac_eee,
.port_bridge_join = b53_br_join,
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 5/9] net: dsa: mt753x: implement .support_eee() method
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (3 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 21:45 ` arinc.unal
2024-12-10 14:18 ` [PATCH net-next 6/9] net: dsa: qca8k: " Russell King (Oracle)
` (6 subsequent siblings)
11 siblings, 2 replies; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Implement the .support_eee() method by using the generic helper as all
user ports support EEE.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/dsa/mt7530.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 086b8b3d5b40..9605febd3573 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -3238,6 +3238,7 @@ const struct dsa_switch_ops mt7530_switch_ops = {
.port_mirror_add = mt753x_port_mirror_add,
.port_mirror_del = mt753x_port_mirror_del,
.phylink_get_caps = mt753x_phylink_get_caps,
+ .support_eee = dsa_supports_eee,
.get_mac_eee = mt753x_get_mac_eee,
.set_mac_eee = mt753x_set_mac_eee,
.conduit_state_change = mt753x_conduit_state_change,
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 6/9] net: dsa: qca8k: implement .support_eee() method
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (4 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 7/9] net: dsa: mv88e6xxx: " Russell King (Oracle)
` (5 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Implement the .support_eee() method by using the generic helper as all
user ports support EEE.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/dsa/qca/qca8k-8xxx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/qca/qca8k-8xxx.c b/drivers/net/dsa/qca/qca8k-8xxx.c
index 59b4a7240b58..ec74e3c2b0e9 100644
--- a/drivers/net/dsa/qca/qca8k-8xxx.c
+++ b/drivers/net/dsa/qca/qca8k-8xxx.c
@@ -2016,6 +2016,7 @@ static const struct dsa_switch_ops qca8k_switch_ops = {
.get_ethtool_stats = qca8k_get_ethtool_stats,
.get_sset_count = qca8k_get_sset_count,
.set_ageing_time = qca8k_set_ageing_time,
+ .support_eee = dsa_supports_eee,
.get_mac_eee = qca8k_get_mac_eee,
.set_mac_eee = qca8k_set_mac_eee,
.port_enable = qca8k_port_enable,
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 7/9] net: dsa: mv88e6xxx: implement .support_eee() method
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (5 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 6/9] net: dsa: qca8k: " Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 8/9] net: dsa: ksz: " Russell King (Oracle)
` (4 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Implement the .support_eee() method by using the generic helper as all
user ports support EEE.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/dsa/mv88e6xxx/chip.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 3a792f79270d..1d78974ea2a3 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -7074,6 +7074,7 @@ static const struct dsa_switch_ops mv88e6xxx_switch_ops = {
.get_sset_count = mv88e6xxx_get_sset_count,
.port_max_mtu = mv88e6xxx_get_max_mtu,
.port_change_mtu = mv88e6xxx_change_mtu,
+ .support_eee = dsa_supports_eee,
.get_mac_eee = mv88e6xxx_get_mac_eee,
.set_mac_eee = mv88e6xxx_set_mac_eee,
.get_eeprom_len = mv88e6xxx_get_eeprom_len,
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 8/9] net: dsa: ksz: implement .support_eee() method
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (6 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 7/9] net: dsa: mv88e6xxx: " Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented Russell King (Oracle)
` (3 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Implement the .support_eee() method by reusing the ksz_validate_eee()
method as a template, renaming the function, changing the return type
and values, and removing it from the ksz_set_mac_eee() and
ksz_get_mac_eee() methods.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/dsa/microchip/ksz_common.c | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
index f5822c57be32..94f9aa983ff6 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -3454,12 +3454,12 @@ static int ksz_max_mtu(struct dsa_switch *ds, int port)
return -EOPNOTSUPP;
}
-static int ksz_validate_eee(struct dsa_switch *ds, int port)
+static bool ksz_support_eee(struct dsa_switch *ds, int port)
{
struct ksz_device *dev = ds->priv;
if (!dev->info->internal_phy[port])
- return -EOPNOTSUPP;
+ return false;
switch (dev->chip_id) {
case KSZ8563_CHIP_ID:
@@ -3471,21 +3471,15 @@ static int ksz_validate_eee(struct dsa_switch *ds, int port)
case KSZ9896_CHIP_ID:
case KSZ9897_CHIP_ID:
case LAN9646_CHIP_ID:
- return 0;
+ return true;
}
- return -EOPNOTSUPP;
+ return false;
}
static int ksz_get_mac_eee(struct dsa_switch *ds, int port,
struct ethtool_keee *e)
{
- int ret;
-
- ret = ksz_validate_eee(ds, port);
- if (ret)
- return ret;
-
/* There is no documented control of Tx LPI configuration. */
e->tx_lpi_enabled = true;
@@ -3501,11 +3495,6 @@ static int ksz_set_mac_eee(struct dsa_switch *ds, int port,
struct ethtool_keee *e)
{
struct ksz_device *dev = ds->priv;
- int ret;
-
- ret = ksz_validate_eee(ds, port);
- if (ret)
- return ret;
if (!e->tx_lpi_enabled) {
dev_err(dev->dev, "Disabling EEE Tx LPI is not supported\n");
@@ -4651,6 +4640,7 @@ static const struct dsa_switch_ops ksz_switch_ops = {
.cls_flower_add = ksz_cls_flower_add,
.cls_flower_del = ksz_cls_flower_del,
.port_setup_tc = ksz_setup_tc,
+ .support_eee = ksz_support_eee,
.get_mac_eee = ksz_get_mac_eee,
.set_mac_eee = ksz_set_mac_eee,
.port_get_default_prio = ksz_port_get_default_prio,
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (7 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 8/9] net: dsa: ksz: " Russell King (Oracle)
@ 2024-12-10 14:18 ` Russell King (Oracle)
2024-12-10 17:31 ` Florian Fainelli
2024-12-11 15:59 ` [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Vladimir Oltean
` (2 subsequent siblings)
11 siblings, 1 reply; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:18 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
Jakub Kicinski, linux-arm-kernel, linux-mediatek,
Matthias Brugger, netdev, Paolo Abeni, Sean Wang, Simon Horman,
UNGLinuxDriver, Vladimir Oltean, Woojung Huh
Now that we have updated all drivers, switch DSA to require an
implementation of the .support_eee() method for EEE to be usable,
rather than defaulting to being permissive when not implemented.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
net/dsa/user.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/dsa/user.c b/net/dsa/user.c
index b54f61605a57..4239083c18bf 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -1229,7 +1229,7 @@ static int dsa_user_set_eee(struct net_device *dev, struct ethtool_keee *e)
int ret;
/* Check whether the switch supports EEE */
- if (ds->ops->support_eee && !ds->ops->support_eee(ds, dp->index))
+ if (!ds->ops->support_eee || !ds->ops->support_eee(ds, dp->index))
return -EOPNOTSUPP;
/* Port's PHY and MAC both need to be EEE capable */
@@ -1253,7 +1253,7 @@ static int dsa_user_get_eee(struct net_device *dev, struct ethtool_keee *e)
int ret;
/* Check whether the switch supports EEE */
- if (ds->ops->support_eee && !ds->ops->support_eee(ds, dp->index))
+ if (!ds->ops->support_eee || !ds->ops->support_eee(ds, dp->index))
return -EOPNOTSUPP;
/* Port's PHY and MAC both need to be EEE capable */
--
2.30.2
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
@ 2024-12-10 17:29 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:29 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> When user ports are initialised, a phylink instance is always created,
> and so dp->pl will always be non-NULL. The EEE methods are only used
> for user ports, so checking for dp->pl to be NULL makes no sense. No
> other phylink-calling method implements similar checks in DSA. Remove
> this unnecessary check.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee()
2024-12-10 14:18 ` [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee() Russell King (Oracle)
@ 2024-12-10 17:29 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:29 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> 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>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method Russell King (Oracle)
@ 2024-12-10 17:30 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:30 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method to indicate that EEE is not
> supported by two switch variants, rather than making these checks in
> the .set_mac_eee() and .get_mac_eee() methods.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 5/9] net: dsa: mt753x: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
@ 2024-12-10 17:30 ` Florian Fainelli
2024-12-10 21:45 ` arinc.unal
1 sibling, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:30 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method by using the generic helper as all
> user ports support EEE.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 6/9] net: dsa: qca8k: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 6/9] net: dsa: qca8k: " Russell King (Oracle)
@ 2024-12-10 17:30 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:30 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method by using the generic helper as all
> user ports support EEE.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 7/9] net: dsa: mv88e6xxx: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 7/9] net: dsa: mv88e6xxx: " Russell King (Oracle)
@ 2024-12-10 17:30 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:30 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method by using the generic helper as all
> user ports support EEE.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 8/9] net: dsa: ksz: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 8/9] net: dsa: ksz: " Russell King (Oracle)
@ 2024-12-10 17:30 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:30 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method by reusing the ksz_validate_eee()
> method as a template, renaming the function, changing the return type
> and values, and removing it from the ksz_set_mac_eee() and
> ksz_get_mac_eee() methods.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented
2024-12-10 14:18 ` [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented Russell King (Oracle)
@ 2024-12-10 17:31 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 17:31 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Now that we have updated all drivers, switch DSA to require an
> implementation of the .support_eee() method for EEE to be usable,
> rather than defaulting to being permissive when not implemented.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported
2024-12-10 14:18 ` [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported Russell King (Oracle)
@ 2024-12-10 19:34 ` Florian Fainelli
0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2024-12-10 19:34 UTC (permalink / raw)
To: Russell King (Oracle), Andrew Lunn, Heiner Kallweit
Cc: AngeloGioacchino Del Regno, Ar__n__ __NAL, Daniel Golle,
David S. Miller, DENG Qingfang, Eric Dumazet, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver,
Vladimir Oltean, Woojung Huh
On 12/10/24 06:18, Russell King (Oracle) wrote:
> Add a hook to determine whether the switch supports EEE. This will
> return false if the switch does not, or true if it does. If the
> method is not implemented, we assume (currently) that the switch
> supports EEE.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 5/9] net: dsa: mt753x: implement .support_eee() method
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
@ 2024-12-10 21:45 ` arinc.unal
1 sibling, 0 replies; 23+ messages in thread
From: arinc.unal @ 2024-12-10 21:45 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: Andrew Lunn, Heiner Kallweit, AngeloGioacchino Del Regno,
Daniel Golle, David S. Miller, DENG Qingfang, Eric Dumazet,
Florian Fainelli, Jakub Kicinski, linux-arm-kernel,
linux-mediatek, Matthias Brugger, netdev, Paolo Abeni, Sean Wang,
Simon Horman, UNGLinuxDriver, Vladimir Oltean, Woojung Huh
On 2024-12-10 16:18, Russell King (Oracle) wrote:
> Implement the .support_eee() method by using the generic helper as all
> user ports support EEE.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Much love.
Arınç
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (8 preceding siblings ...)
2024-12-10 14:18 ` [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented Russell King (Oracle)
@ 2024-12-11 15:59 ` Vladimir Oltean
2024-12-11 16:00 ` Vladimir Oltean
2024-12-12 4:40 ` patchwork-bot+netdevbpf
11 siblings, 0 replies; 23+ messages in thread
From: Vladimir Oltean @ 2024-12-11 15:59 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: Andrew Lunn, Heiner Kallweit, AngeloGioacchino Del Regno,
Arınç ÜNAL, Daniel Golle, David S. Miller,
DENG Qingfang, Eric Dumazet, Florian Fainelli, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver, Woojung Huh
On Tue, Dec 10, 2024 at 02:17:52PM +0000, Russell King (Oracle) wrote:
> Hi,
>
> First part of DSA EEE cleanups.
>
> Patch 1 removes a useless test that is always false. dp->pl will always
> be set for user ports, so !dp->pl in the EEE methods will always be
> false.
>
> Patch 2 adds support for a new DSA support_eee() method, which tells
> DSA whether the DSA driver supports EEE, and thus whether the ethtool
> set_eee() and get_eee() methods should return -EOPNOTSUPP.
>
> Patch 3 adds a trivial implementation for this new method which
> indicates that EEE is supported.
>
> Patches 4..8 adds implementations for .supports_eee() to all drivers
> that support EEE in some form.
>
> Patch 9 switches the core DSA code to require a .supports_eee()
> implementation if DSA is supported. Any DSA driver that doesn't
> implement this method after this patch will not support the ethtool
> EEE methods.
>
> Part 2 will remove the (now) useless .get_mac_eee() DSA operation.
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (9 preceding siblings ...)
2024-12-11 15:59 ` [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Vladimir Oltean
@ 2024-12-11 16:00 ` Vladimir Oltean
2024-12-12 4:40 ` patchwork-bot+netdevbpf
11 siblings, 0 replies; 23+ messages in thread
From: Vladimir Oltean @ 2024-12-11 16:00 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: Andrew Lunn, Heiner Kallweit, AngeloGioacchino Del Regno,
Arınç ÜNAL, Daniel Golle, David S. Miller,
DENG Qingfang, Eric Dumazet, Florian Fainelli, Jakub Kicinski,
linux-arm-kernel, linux-mediatek, Matthias Brugger, netdev,
Paolo Abeni, Sean Wang, Simon Horman, UNGLinuxDriver, Woojung Huh
On Tue, Dec 10, 2024 at 02:17:52PM +0000, Russell King (Oracle) wrote:
> Part 2 will remove the (now) useless .get_mac_eee() DSA operation.
Thanks for the work. For part 2, could you also include changes to
Documentation/networking/dsa/ to explain the new usage pattern?
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
` (10 preceding siblings ...)
2024-12-11 16:00 ` Vladimir Oltean
@ 2024-12-12 4:40 ` patchwork-bot+netdevbpf
11 siblings, 0 replies; 23+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-12-12 4:40 UTC (permalink / raw)
To: Russell King
Cc: andrew, hkallweit1, angelogioacchino.delregno, arinc.unal, daniel,
davem, dqfext, edumazet, florian.fainelli, kuba, linux-arm-kernel,
linux-mediatek, matthias.bgg, netdev, pabeni, sean.wang, horms,
UNGLinuxDriver, olteanv, woojung.huh
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 10 Dec 2024 14:17:52 +0000 you wrote:
> Hi,
>
> First part of DSA EEE cleanups.
>
> Patch 1 removes a useless test that is always false. dp->pl will always
> be set for user ports, so !dp->pl in the EEE methods will always be
> false.
>
> [...]
Here is the summary with links:
- [net-next,1/9] net: dsa: remove check for dp->pl in EEE methods
https://git.kernel.org/netdev/net-next/c/66c366392e55
- [net-next,2/9] net: dsa: add hook to determine whether EEE is supported
https://git.kernel.org/netdev/net-next/c/9723a77318b7
- [net-next,3/9] net: dsa: provide implementation of .support_eee()
https://git.kernel.org/netdev/net-next/c/99379f587278
- [net-next,4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method
https://git.kernel.org/netdev/net-next/c/c86692fc2cb7
- [net-next,5/9] net: dsa: mt753x: implement .support_eee() method
https://git.kernel.org/netdev/net-next/c/7eb4f3d9fe17
- [net-next,6/9] net: dsa: qca8k: implement .support_eee() method
https://git.kernel.org/netdev/net-next/c/fe3ef44385b2
- [net-next,7/9] net: dsa: mv88e6xxx: implement .support_eee() method
https://git.kernel.org/netdev/net-next/c/eb3126e720e7
- [net-next,8/9] net: dsa: ksz: implement .support_eee() method
https://git.kernel.org/netdev/net-next/c/801fd546c1ca
- [net-next,9/9] net: dsa: require .support_eee() method to be implemented
https://git.kernel.org/netdev/net-next/c/88325a291a0c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2024-12-12 4:41 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported Russell King (Oracle)
2024-12-10 19:34 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee() Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 21:45 ` arinc.unal
2024-12-10 14:18 ` [PATCH net-next 6/9] net: dsa: qca8k: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 7/9] net: dsa: mv88e6xxx: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 8/9] net: dsa: ksz: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented Russell King (Oracle)
2024-12-10 17:31 ` Florian Fainelli
2024-12-11 15:59 ` [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Vladimir Oltean
2024-12-11 16:00 ` Vladimir Oltean
2024-12-12 4:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).