History

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.

David Ahern committed 11 years ago

Commit db24a901 parent 56ef9c96 files · +75 −0Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -147,6 +147,7 @@ enum { · 146 unmodified lines
147 IFLA_CARRIER_CHANGES,147 IFLA_CARRIER_CHANGES,
148 IFLA_PHYS_SWITCH_ID,148 IFLA_PHYS_SWITCH_ID,
149 IFLA_LINK_NETNSID,149 IFLA_LINK_NETNSID,
150 IFLA_PHYS_PORT_NAME,
150 __IFLA_MAX151 __IFLA_MAX
151};152};
152 153

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t