[NET]: Expose netdevice dev_id through sysfs
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 20 Apr 2008 23:07:43 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Apr 2008 23:07:43 +0000 (16:07 -0700)
commit9d29672c64505f2d7f707701b829715705308a69
tree8a62c799b03820930b756c0d867b480386cb2d2f
parentf7d0e5a506396419eb731b6c6cd97ed23c9245c7
[NET]: Expose netdevice dev_id through sysfs

Expose dev_id to userspace, because it helps to disambiguate between
interfaces where the MAC address is unique.

This should allow us to simplify the handling of persistent naming for
S390 network devices in udev -- because it can depend on a simple
attribute of the device like the other match criteria, rather than
having a special case for SUBSYSTEMS=="ccwgroup".

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c