> >The hardware and mechanical engineer is free to wire switch ports to > >the front panel however they want. That is why we put the netdev name > >in device tree. > > Got it. Hmm, so I think that the port number can be made optional and > when it is present, it would be used to generate phys_port_name. If > not, perhaps devlink port index could be used instead. > > So iiuc, you don't really need phys_port_name in dsa, as it provides > misleading names, right? Why is it implemented then?
Hi Jiri Isn't the same true for all devices? It is not just DSA devices where the hardware engineer is free to wire up the front panel however they want, it can happen for any device. Andrew