Re: [PATCH net 2/2] net: ethtool: netlink: Pass a context for default ethnl notifications

From
Maxime Chevallier <maxime.chevallier@bootlin.com>
Date
2025-03-01 10:38:54
Also in
linux-arm-kernel, lkml
Reply to
Jakub Kicinski, 2025-03-01
On Fri, 28 Feb 2025 18:24:40 -0800
Jakub Kicinski [off-list ref] wrote:
On Thu, 27 Feb 2025 19:24:52 +0100 Maxime Chevallier wrote:
quoted
The only relevant user for now is PLCA, and it very likely that we never
ended-up in a situation where the follow-up notif wasn't targeting the
correct PHY as :  
PLCA uses the ethnl_default_* handlers but it seems to operate on PHYs
now. How does the dump work? Shoehorning the PHY support into
the ethnl_default_* handlers is starting to look pretty messy.
Thinking more about this, this patch shouldn't have targetted -net in
the first place, as no usecase regressed yet (we don't have any
multi-PHY PLCA setup that exists). The DUMP keeps working as it did
before for that command, in that we dump the PLCA info for
netdev->phydev.

That DUMP / notify situation needs to be addressed as tome point thouh,
before the multi-PHY support through muxes lands (haven't sent it yet,
I'm still on the preliminary series for phy_ports).

So I think that indeed, I'll resend patch 1, and find a more graceful
solution for the phy-targetting commands in a separate series.

Maxime
Thread (9 messages) 9 messages, 3 authors, last reply 2025-03-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help