
Hi Etienne,
On 6/25/24 1:42 PM, Etienne Dublé wrote:
Hello,
Le 25/06/2024 à 12:25, Dragan Simic a écrit :
Another option may be to name them "rtl8169@<hexa>", with "<hexa>" reflecting the PCI region address (so it is unique and stable). What do you think?
I guess that's one way, I'm also wondering how systemd renames those to be unique but stable on the same machine, maybe we could take some inspiration from them for that?
Systemd also allows renaming of network interfaces using some rules predefined by the user, so there's also the possibility to rename the interfaces in U-Boot to ethernet0 and ethernet1, using fixed rules that would be based on the PCI region address.
OK but the renaming occurs in the rtl8169 driver, that is used by several boards, whereas the PCI region addresses come from the device-tree, so they differ from board to board.
I'm of the opinion that we only care about stability for the same product, not for different products with the same Ethernet PHY on different SoCs/products.
Cheers, Quentin