The important bits of udev seem to be these:
P: /devices/pci0008:00/0008:00:00.0/0008:01:00.0 E: DEVPATH=/devices/pci0008:00/0008:00:00.0/0008:01:00.0 E: DRIVER=mlx4_core E: ID_MODEL_FROM_DATABASE=MT27500 Family [ConnectX-3] E: ID_PCI_CLASS_FROM_DATABASE=Network controller E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller E: ID_VENDOR_FROM_DATABASE=Mellanox Technologies E: MODALIAS=pci:v000015B3d00001003sv00001014sd000004B5bc02sc00i00 E: OF_COMPATIBLE_N=0 E: OF_FULLNAME=/pciex@3fffe40400000/pci@0/ethernet@0 E: OF_NAME=ethernet E: PCI_CLASS=20000 E: PCI_ID=15B3:1003 E: PCI_SLOT_NAME=0008:01:00.0 E: PCI_SUBSYS_ID=1014:04B5 E: SUBSYSTEM=pci E: USEC_INITIALIZED=11882462
P: /devices/pci0008:00/0008:00:00.0/0008:01:00.0/net/enP8p1s0 E: DEVPATH=/devices/pci0008:00/0008:00:00.0/0008:01:00.0/net/enP8p1s0 E: ID_BUS=pci E: ID_MM_CANDIDATE=1 E: ID_MODEL_FROM_DATABASE=MT27500 Family [ConnectX-3] E: ID_MODEL_ID=0x1003 E: ID_NET_DRIVER=mlx4_en E: ID_NET_LINK_FILE=/lib/systemd/network/99-default.link E: ID_NET_NAME_MAC=enxe41d2d2590c0 E: ID_NET_NAME_PATH=enP8p1s0 E: ID_OUI_FROM_DATABASE=Mellanox Technologies, Inc. E: ID_PATH=pci-0008:01:00.0 E: ID_PATH_TAG=pci-0008_01_00_0 E: ID_PCI_CLASS_FROM_DATABASE=Network controller E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller E: ID_VENDOR_FROM_DATABASE=Mellanox Technologies E: ID_VENDOR_ID=0x15b3 E: IFINDEX=8 E: INTERFACE=enP8p1s0 E: SUBSYSTEM=net E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enP8p1s0 E: TAGS=:systemd: E: USEC_INITIALIZED=8004370
P: /devices/pci0008:00/0008:00:00.0/0008:01:00.0/net/enP8p1s0d1 E: DEVPATH=/devices/pci0008:00/0008:00:00.0/0008:01:00.0/net/enP8p1s0d1 E: ID_BUS=pci E: ID_MM_CANDIDATE=1 E: ID_MODEL_FROM_DATABASE=MT27500 Family [ConnectX-3] E: ID_MODEL_ID=0x1003 E: ID_NET_DRIVER=mlx4_en E: ID_NET_LINK_FILE=/lib/systemd/network/99-default.link E: ID_NET_NAME_MAC=enxe41d2d2590c1 E: ID_NET_NAME_PATH=enP8p1s0d1 E: ID_OUI_FROM_DATABASE=Mellanox Technologies, Inc. E: ID_PATH=pci-0008:01:00.0 E: ID_PATH_TAG=pci-0008_01_00_0 E: ID_PCI_CLASS_FROM_DATABASE=Network controller E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller E: ID_VENDOR_FROM_DATABASE=Mellanox Technologies E: ID_VENDOR_ID=0x15b3 E: IFINDEX=9 E: INTERFACE=enP8p1s0d1 E: SUBSYSTEM=net E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enP8p1s0d1 E: TAGS=:systemd: E: USEC_INITIALIZED=7956109
The important bits of udev seem to be these:
P: /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0 /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0 FROM_DATABASE= MT27500 Family [ConnectX-3] CLASS_FROM_ DATABASE= Network controller SUBCLASS_ FROM_DATABASE= Ethernet controller FROM_DATABASE= Mellanox Technologies pci:v000015B3d0 0001003sv000010 14sd000004B5bc0 2sc00i00 /pciex@ 3fffe40400000/ pci@0/ethernet@ 0 NAME=0008: 01:00.0 ID=1014: 04B5 D=11882462
E: DEVPATH=
E: DRIVER=mlx4_core
E: ID_MODEL_
E: ID_PCI_
E: ID_PCI_
E: ID_VENDOR_
E: MODALIAS=
E: OF_COMPATIBLE_N=0
E: OF_FULLNAME=
E: OF_NAME=ethernet
E: PCI_CLASS=20000
E: PCI_ID=15B3:1003
E: PCI_SLOT_
E: PCI_SUBSYS_
E: SUBSYSTEM=pci
E: USEC_INITIALIZE
P: /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0/net/ enP8p1s0 /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0/net/ enP8p1s0 FROM_DATABASE= MT27500 Family [ConnectX-3] DRIVER= mlx4_en LINK_FILE= /lib/systemd/ network/ 99-default. link NAME_MAC= enxe41d2d2590c0 NAME_PATH= enP8p1s0 FROM_DATABASE= Mellanox Technologies, Inc. pci-0008: 01:00.0 TAG=pci- 0008_01_ 00_0 CLASS_FROM_ DATABASE= Network controller SUBCLASS_ FROM_DATABASE= Ethernet controller FROM_DATABASE= Mellanox Technologies ALIAS=/ sys/subsystem/ net/devices/ enP8p1s0 D=8004370
E: DEVPATH=
E: ID_BUS=pci
E: ID_MM_CANDIDATE=1
E: ID_MODEL_
E: ID_MODEL_ID=0x1003
E: ID_NET_
E: ID_NET_
E: ID_NET_
E: ID_NET_
E: ID_OUI_
E: ID_PATH=
E: ID_PATH_
E: ID_PCI_
E: ID_PCI_
E: ID_VENDOR_
E: ID_VENDOR_ID=0x15b3
E: IFINDEX=8
E: INTERFACE=enP8p1s0
E: SUBSYSTEM=net
E: SYSTEMD_
E: TAGS=:systemd:
E: USEC_INITIALIZE
P: /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0/net/ enP8p1s0d1 /devices/ pci0008: 00/0008: 00:00.0/ 0008:01: 00.0/net/ enP8p1s0d1 FROM_DATABASE= MT27500 Family [ConnectX-3] DRIVER= mlx4_en LINK_FILE= /lib/systemd/ network/ 99-default. link NAME_MAC= enxe41d2d2590c1 NAME_PATH= enP8p1s0d1 FROM_DATABASE= Mellanox Technologies, Inc. pci-0008: 01:00.0 TAG=pci- 0008_01_ 00_0 CLASS_FROM_ DATABASE= Network controller SUBCLASS_ FROM_DATABASE= Ethernet controller FROM_DATABASE= Mellanox Technologies enP8p1s0d1 ALIAS=/ sys/subsystem/ net/devices/ enP8p1s0d1 D=7956109
E: DEVPATH=
E: ID_BUS=pci
E: ID_MM_CANDIDATE=1
E: ID_MODEL_
E: ID_MODEL_ID=0x1003
E: ID_NET_
E: ID_NET_
E: ID_NET_
E: ID_NET_
E: ID_OUI_
E: ID_PATH=
E: ID_PATH_
E: ID_PCI_
E: ID_PCI_
E: ID_VENDOR_
E: ID_VENDOR_ID=0x15b3
E: IFINDEX=9
E: INTERFACE=
E: SUBSYSTEM=net
E: SYSTEMD_
E: TAGS=:systemd:
E: USEC_INITIALIZE