From: Tom Gundersen <t...@jklm.no> Date: Thu, 30 Jan 2014 14:20:02 +0100
> In systemd's networkd and udevd, we would like to give the administrator a > simple way to filter net devices by their DEVTYPE [0][1]. Other software > such as ConnMan and NetworkManager uses a similar filtering already. > > Currently, plain ethernet devices have DEVTYPE=(null). This patch sets the > devtype to "ethernet" instead. This avoids the need for special-casing the > DEVTYPE=(null) case in userspace, and also avoids false positives, as there > are several other types of netdevs that also have DEVTYPE=(null). > > Notice that this is done, as suggested by Marcel, in alloc_etherdev_mqs(), > and as best I can tell it will not give any false positives. I considered > doing it in ether_setup() instead as that seemed more intuitive, but that > would give a lot of false positives indeed. > > [0]: > <http://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html#Type> > [1]: <http://www.freedesktop.org/software/systemd/man/udev.html#Type> > > Signed-off-by: Tom Gundersen <t...@jklm.no> Assuming that all users of alloc_etherdev*() are ethernet devices is really not going to work. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/