Am 2021-07-27 18:32, schrieb Marek Behún:
On Tue, 27 Jul 2021 17:53:58 +0200
Michael Walle <michael@xxxxxxxx> wrote:
> If we used the devicename as you are suggesting, then for the two LEDs
> the devicename part would be the same:
> ledA -> macA -> ethernet0
> ledB -> phyB -> ethernet0
> although they are clearly on different MACs.
Why is that the case? Why can't both the MAC and the PHY request a
unique name from the same namespace?
So all the network related devices should request a unique network
relate device ID? Should also wireless PHY devices do this? WWAN
modems?
And all these should have the same template for devicename part withing
/sys/class/leds? What should be the template for the devicename, if
wireless PHYs and WWAN modems could also be part of this? It cannot be
"ethernet" anymore.
I don't suggest using ethernet for everything. I just questioned
wether the distinction between ethmac and ethphy makes any sense from
a (human) user point of view; if the devicename part is visible to an
user at all.
-michael