diff options
author | David Ahern <dsahern@gmail.com> | 2015-03-17 20:23:15 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-18 22:30:35 -0400 |
commit | db24a9044ee191c397dcd1c6574f56d67d7c8df5 (patch) | |
tree | 5d15e7aed127d9c211b5b2dc2d69607cef0d6d8d /Documentation | |
parent | 56ef9c909b40483d2c8cb63fcbf83865f162d5ec (diff) | |
download | linux-db24a9044ee191c397dcd1c6574f56d67d7c8df5.tar.gz linux-db24a9044ee191c397dcd1c6574f56d67d7c8df5.tar.bz2 linux-db24a9044ee191c397dcd1c6574f56d67d7c8df5.zip |
net: add support for phys_port_name
Similar to port id allow netdevices to specify port names and export
the name via sysfs. Drivers can implement the netdevice operation to
assist udev in having sane default names for the devices using the
rule:
$ cat /etc/udev/rules.d/80-net-setup-link.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{phys_port_name}!="",
NAME="$attr{phys_port_name}"
Use of phys_name versus phys_id was suggested-by Jiri Pirko.
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-net | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-net b/Documentation/ABI/testing/sysfs-class-net index beb8ec4dabbc..5ecfd72ba684 100644 --- a/Documentation/ABI/testing/sysfs-class-net +++ b/Documentation/ABI/testing/sysfs-class-net @@ -188,6 +188,14 @@ Description: Indicates the interface unique physical port identifier within the NIC, as a string. +What: /sys/class/net/<iface>/phys_port_name +Date: March 2015 +KernelVersion: 4.0 +Contact: netdev@vger.kernel.org +Description: + Indicates the interface physical port name within the NIC, + as a string. + What: /sys/class/net/<iface>/speed Date: October 2009 KernelVersion: 2.6.33 |