2008/7/29 Marco d'Itri <[EMAIL PROTECTED]>

> On Jul 28, Julien Langer <[EMAIL PROTECTED]> wrote:
>
> > I noticed that my NICs are not added automatically to the persistent
> rules
> > anymore.
> Nevermind. Does commenting the DRIVERS!="?*" line in
> 75-persistent-net-generator.rules make it generate some rules?


> (Beware, it may create bogus rules too this way! Do not keep the
> generated file.)
>

Removing the line really did help.
Here's the file that was generated then:
# PCI device 0x11ab:0x4320 (skge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:22:15:46:2c:18", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"

# PCI device 0x11ab:0x4364 (sky2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:22:15:46:17:09", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

and just in case, here's the output of the other command:
  looking at device '/class/net/eth0':
    KERNEL=="eth0"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_len}=="6"
    ATTR{dev_id}=="0x0"
    ATTR{iflink}=="2"
    ATTR{ifindex}=="2"
    ATTR{features}=="0x10003"
    ATTR{type}=="1"
    ATTR{link_mode}=="0"
    ATTR{address}=="00:22:15:46:17:09"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{carrier}=="1"
    ATTR{dormant}=="0"
    ATTR{operstate}=="up"
    ATTR{mtu}=="1500"
    ATTR{flags}=="0x1003"
    ATTR{tx_queue_len}=="1000"

  looking at parent device '/devices/pci0000:00/0000:00:1c.5/0000:02:00.0':
    KERNELS=="0000:02:00.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="sky2"
    ATTRS{vendor}=="0x11ab"
    ATTRS{device}=="0x4364"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x81f8"
    ATTRS{class}=="0x020000"
    ATTRS{irq}=="17"
    ATTRS{local_cpus}=="ff"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{modalias}=="pci:v000011ABd00004364sv00001043sd000081F8bc02sc00i00"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00/0000:00:1c.5':
    KERNELS=="0000:00:1c.5"
    SUBSYSTEMS=="pci"
    DRIVERS=="pcieport-driver"
    ATTRS{vendor}=="0x8086"
    ATTRS{device}=="0x3a4a"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{class}=="0x060400"
    ATTRS{irq}=="16"
    ATTRS{local_cpus}=="ff"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{modalias}=="pci:v00008086d00003A4Asv00000000sd00000000bc06sc04i00"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}=="1"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""


Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/net/eth1':
    KERNEL=="eth1"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_len}=="6"
    ATTR{dev_id}=="0x0"
    ATTR{iflink}=="3"
    ATTR{ifindex}=="3"
    ATTR{features}=="0x23"
    ATTR{type}=="1"
    ATTR{link_mode}=="0"
    ATTR{address}=="00:22:15:46:2c:18"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{operstate}=="down"
    ATTR{mtu}=="1500"
    ATTR{flags}=="0x1002"
    ATTR{tx_queue_len}=="1000"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:05:02.0':
    KERNELS=="0000:05:02.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="skge"
    ATTRS{vendor}=="0x11ab"
    ATTRS{device}=="0x4320"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x811a"
    ATTRS{class}=="0x020000"
    ATTRS{irq}=="18"
    ATTRS{local_cpus}=="ff"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{modalias}=="pci:v000011ABd00004320sv00001043sd0000811Abc02sc00i00"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{vendor}=="0x8086"
    ATTRS{device}=="0x244e"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{class}=="0x060401"
    ATTRS{irq}=="0"
    ATTRS{local_cpus}=="ff"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{modalias}=="pci:v00008086d0000244Esv00000000sd00000000bc06sc04i01"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}=="1"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""


> --
> ciao,
> Marco
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkiOa4QACgkQFGfw2OHuP7GlpACfQ5vdQB4nvp4peyCGXiTo30/r
> XEYAnRo45IjlSUnf4KSUQVqsea9cqt6a
> =3kSJ
> -----END PGP SIGNATURE-----
>
>

Reply via email to