alistair23-linux/drivers/net/usb
Marcel Holtmann 384912ed19 net: Add DEVTYPE support for Ethernet based devices
The Ethernet framing is used for a lot of devices these days. Most
prominent are WiFi and WiMAX based devices. However for userspace
application it is important to classify these devices correctly and
not only see them as Ethernet devices. The daemons like HAL, DeviceKit
or even NetworkManager with udev support tries to do the classification
in userspace with a lot trickery and extra system calls. This is not
good and actually reaches its limitations. Especially since the kernel
does know the type of the Ethernet device it is pretty stupid.

To solve this problem the underlying device type needs to be set and
then the value will be exported as DEVTYPE via uevents and available
within udev.

  # cat /sys/class/net/wlan0/uevent
  DEVTYPE=wlan
  INTERFACE=wlan0
  IFINDEX=5

This is similar to subsystems like USB and SCSI that distinguish
between hosts, devices, disks, partitions etc.

The new SET_NETDEV_DEVTYPE() is a convenience helper to set the actual
device type. All device types are free form, but for convenience the
same strings as used with RFKILL are choosen.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-09-11 12:54:55 -07:00
..
asix.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
catc.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
cdc-phonet.c usbnet: convert to netdev_tx_t 2009-09-01 01:13:22 -07:00
cdc_eem.c cdc-eem: bad crc checking 2009-07-16 18:06:25 -07:00
cdc_ether.c cdc_ether: additional PID's to the whitelist 2009-06-19 00:19:51 -07:00
cdc_subset.c usbnet cdc_subset: fix issues talking to PXA gadgets 2009-06-20 01:21:53 -07:00
dm9601.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
gl620a.c Move usbnet.h and rndis_host.h to include/linux/usb 2008-01-31 19:27:00 -08:00
hso.c net: Add DEVTYPE support for Ethernet based devices 2009-09-11 12:54:55 -07:00
int51x1.c usb driver for intellon int51x1 based PLC like devolo dlan duo 2009-04-21 01:55:59 -07:00
kaweth.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
Kconfig USB host CDC Phonet network interface driver 2009-07-21 12:40:39 -07:00
Makefile USB host CDC Phonet network interface driver 2009-07-21 12:40:39 -07:00
mcs7830.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
net1080.c net1080: Use netdev stats structure 2009-06-30 19:46:43 -07:00
pegasus.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
pegasus.h pegasus: Add new device ID. 2009-08-14 16:41:17 -07:00
plusb.c Move usbnet.h and rndis_host.h to include/linux/usb 2008-01-31 19:27:00 -08:00
rndis_host.c rndis_host: allow rndis_wlan to see all indications 2009-08-04 16:44:17 -04:00
rtl8150.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
smsc95xx.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
smsc95xx.h smsc95xx: configure LED outputs 2009-05-01 15:27:02 -07:00
usbnet.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
zaurus.c zaurus: add usb id for motomagx phones 2009-03-01 20:48:08 -08:00