[PATCH net-next v5 4/4] net: ethtool: pse-pd: Use per-PHY DUMP operations

Maxime Chevallier maxime.chevallier at bootlin.com
Thu Apr 10 05:33:49 PDT 2025


Leverage the per-phy ethnl DUMP helpers in case we have more that one
PSE PHY on the link.

Signed-off-by: Maxime Chevallier <maxime.chevallier at bootlin.com>
---
 net/ethtool/netlink.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/ethtool/netlink.c b/net/ethtool/netlink.c
index dd4eaa77dd8c..7186c465f429 100644
--- a/net/ethtool/netlink.c
+++ b/net/ethtool/netlink.c
@@ -1361,9 +1361,9 @@ static const struct genl_ops ethtool_genl_ops[] = {
 	{
 		.cmd	= ETHTOOL_MSG_PSE_GET,
 		.doit	= ethnl_default_doit,
-		.start	= ethnl_default_start,
-		.dumpit	= ethnl_default_dumpit,
-		.done	= ethnl_default_done,
+		.start	= ethnl_perphy_start,
+		.dumpit	= ethnl_perphy_dumpit,
+		.done	= ethnl_perphy_done,
 		.policy = ethnl_pse_get_policy,
 		.maxattr = ARRAY_SIZE(ethnl_pse_get_policy) - 1,
 	},
-- 
2.49.0




More information about the linux-arm-kernel mailing list