Re: Bug#499868: udev: multiple mac80211 interfaces created on the same physical device are incorrectly renamed

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

 



On Wed, Apr 15, 2009 at 15:43, Marco d'Itri <md@xxxxxxxx> wrote:
> Does anybody have good ideas about how to fix this case?
>
> Everything in the udevinfo output is identical except:
>
> -    ATTR{link_mode}=="1"
> +    ATTR{link_mode}=="0"
>
> -    ATTR{carrier}=="1"
> -    ATTR{dormant}=="0"
>
> -    ATTR{flags}=="0x1003"
> +    ATTR{flags}=="0x1002"

> mac80211 drivers allow multiple interfaces to be created on the same physical
> device, so the underlying wmaster0 device can have eth0, eth1 and eth2.  When
> the driver is first loaded, a udev rule like this is written:

I don't think that can ever work in the default ethX namespace. The
userspace logic that requests these interfaces should be able to
supply a custom name along with the request for the new device.
Putting things like this by default under the ethX namespace can not
work with any current logic.

Alternatively, the persistent rules can be disabled by:
  echo "# disable persistent net rules" > \
    /etc/udev/rules.d/75-persistent-net-generator.rules
which will disable the rules file with the same name in /lib/udev/rules.d/.

But then nobody should be surprised by random names at booup, if
modules are not carfully loaded manually in a controlled order.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux