[PATCH 1/3] net: give a different name to rtl8169 interfaces
Etienne Dublé
etienne.duble at imag.fr
Tue Jun 25 13:42:21 CEST 2024
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.
Regards,
Etienne
--
Etienne Dublé
CNRS / LIG - Bâtiment IMAG
700 avenue Centrale - 38401 St Martin d'Hères
Bureau 426 - Tel 0457421431
More information about the U-Boot
mailing list