[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0dbf9730-2409-30f9-e9e4-946fe7fec413@gmail.com>
Date: Fri, 6 Jan 2017 14:47:38 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...oirfairelinux.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...oirfairelinux.com,
"David S. Miller" <davem@...emloft.net>,
Uwe Kleine-König <uwe@...ine-koenig.org>
Subject: Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for
dsa2
On 01/06/2017 02:20 PM, Andrew Lunn wrote:
>> If one wants to rename an interface, udev rules can be used as usual.
>
> Hi Vivien
>
> Do you have some examples?
>
> A quick look at udevadm info suggests we can use
>
> ATTR{phys_port_id} and ATTR{phys_switch_id}
>
> Humm, it would be nice to know why the second switch has a
> phys_switch_id of 01000000.
Well, that's a combination of being on a little endian system and using
%*phN as a printk formatter, and the type being 32-bit long (int). I
agree this does not feel natural, but since this is sysfs (so ABI in a
way), it's going to be though to change now.
--
Florian
Powered by blists - more mailing lists