Re: [...] "How does the new naming scheme look like, precisely?"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux