On 13.03.2017 21:37, Stephen Morris wrote:
[...]
> In fact, for me, Fedora's naming convention raises more questions than 
> it answers. Without knowing anything about the internal hardware design 
> of a motherboard, how is a usb port on a pci bus, I would expect pci 
> ports to be on a pci bus and usb ports to be on a usb bus, and relative 
> to usb ports I would expect there to be a separate bus for usb 2 and usb 
> 3 ports.
[...]

Hello Zbigniew,
would you mind to further explain the naming scheme?

I show an example;

dmesg -t | grep wl -m1
r92su 1-3:1.0 wlp0s2f1u3: renamed from wlan0

wlp0s2f1u3
wl       p0       s2        f1            u3
wl-wlan  p-bus=0  s-slot=2  f-function=1  u-port=3

lsusb
Bus 001 Device 003: ...

lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
    |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=r92su, 480M

ls /sys/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/net/
wlp0s2f1u3

lspci -d ::0c03
00:02.1 USB controller: ...
 00    02       1
<bus>:<device>.<func>

udevadm info -q env /sys/class/net/wlp0s2f1u3 | grep PATH
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/net/wlp0s2f1u3
ID_NET_NAME_PATH=wlp0s2f1u3
ID_PATH=pci-0000:00:02.1-usb-0:3:1.0
ID_PATH_TAG=pci-0000_00_02_1-usb-0_3_1_0

udevadm info -a -p /sys/class/net/wlp0s2f1u3 | grep looking -A 3
  looking at device 
'/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0/net/wlp0s2f1u3':
    KERNEL=="wlp0s2f1u3"
    SUBSYSTEM=="net"
    DRIVER==""
--
  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0':
    KERNELS=="1-3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="r92su"
--
  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-3':
    KERNELS=="1-3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
--
  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
--
  looking at parent device '/devices/pci0000:00/0000:00:02.1':
    KERNELS=="0000:00:02.1"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci-pci"
--
  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

Ref.
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L46
 *   [P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>]
 *                                         — USB port number chain
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to