Subject: Re: [PATCH v4 1/3] net: add support for phys_port_name

From: David Ahern <[email-masked]>
Date: Tue, 24 Mar 2015 16:25:12 -0600

On 3/24/15 4:13 PM, Stephen Hemminger wrote:
> On Tue, 17 Mar 2015 20:23:15 -0600
> David Ahern <[email-masked]> wrote:
>
>> 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 <[email-masked]>
>> Acked-by: Jiri Pirko <[email-masked]>
>> Acked-by: Scott Feldman <[email-masked]>
>
> Should this also be settable as well?
>
>

The intention was for this to come from the device. Currently, 
phys_port_id and phys_port_name only have get methods, so no set.

David