<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Aug 2024 at 09:59, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Aug 22, 2024 at 11:45 AM Henti Smith <<a href="mailto:henti@gaydonsmith.co.uk" target="_blank">henti@gaydonsmith.co.uk</a>> wrote:<br>
...<br>
><br>
> I attempted to match the network devices using Property= as follows (using debug1 as an example):<br>
><br>
> # Fixed name for debug1 (Debug Board)<br>
> [Match]<br>
> Property=Path=pci-0000:01:00.0 ID_NET_DRIVER=igb<br>
><br>
<br>
"Path" is not udev property.<br></blockquote><div><br></div><div>Ahh thank you for pointing this out. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> udevadm info /sys/class/net/enp1s0<br>
> P: /devices/pci0000:00/0000:00:0c.0/0000:01:00.0/net/enp1s0<br>
> L: 0<br>
> E: DEVPATH=/devices/pci0000:00/0000:00:0c.0/0000:01:00.0/net/enp1s0<br>
> E: INTERFACE=enp1s0<br>
> E: IFINDEX=2<br>
> E: SUBSYSTEM=net<br>
> E: USEC_INITIALIZED=4788144<br>
> E: ID_NET_NAMING_SCHEME=v245<br>
> E: ID_NET_NAME_MAC=enx00a0c9000000<br>
> E: ID_OUI_FROM_DATABASE=Intel Corporation<br>
> E: ID_NET_NAME_PATH=enp1s0<br>
> E: ID_BUS=pci<br>
> E: ID_VENDOR_ID=0x8086<br>
> E: ID_MODEL_ID=0x1533<br>
> E: ID_PCI_CLASS_FROM_DATABASE=Network controller<br>
> E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller<br>
> E: ID_VENDOR_FROM_DATABASE=Intel Corporation<br>
> E: ID_MODEL_FROM_DATABASE=I210 Gigabit Network Connection<br>
> E: ID_PATH=pci-0000:01:00.0<br>
<br>
"ID_PATH" is.<br>
<br></blockquote><div><br></div><div>Further testing showed that "ID_PATH" Will not work either since both the first ethernet and the ethernet on the debug board will use the same PCI address and are both ID_NET_DRIVER=igb as well. <br></div><div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> E: ID_PATH_TAG=pci-0000_01_00_0<br>
> E: ID_NET_DRIVER=igb<br>
> E: ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link<br>
> E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp1s0<br>
> E: TAGS=:systemd:<br>
><br>
<br>
Also, you do not need to use Property for your match, it is just<br>
<br>
[Match]<br>
Path=pci-0000:01:00.0<br>
Driver=igb<br></blockquote><div><br></div><div>I'll experiment further with the "Property=" option since the "Path" does not include the bus ID which I need to match on. <br></div><div><br></div><div>Thank you for pointing out my misunderstanding of the documentation. <br></div><div><br></div><div>Kind regards</div><div>Henti<br></div></div></div>