Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1553414

Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for dsa2

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for dsa2
Date 2017-01-06 23:50 +0100
Message-ID <sWLuH-4T-71@gated-at.bofh.it> (permalink)
References <sWLbk-8oT-19@gated-at.bofh.it> <sWLbk-8oT-17@gated-at.bofh.it> <sWLbl-8oT-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next 1/2] net: dsa: make "label" property optional for dsa2 Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-01-06 23:30 +0100
  Re: [PATCH net-next 1/2] net: dsa: make "label" property optional  for dsa2 Andrew Lunn <andrew@lunn.ch> - 2017-01-06 23:30 +0100
    Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for  dsa2 Florian Fainelli <f.fainelli@gmail.com> - 2017-01-06 23:50 +0100
      Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for  dsa2 Uwe Kleine-König <uwe@kleine-koenig.org> - 2017-01-07 21:40 +0100
  Re: [PATCH net-next 1/2] net: dsa: make "label" property optional for  dsa2 Uwe Kleine-König <uwe@kleine-koenig.org> - 2017-01-07 21:50 +0100

csiph-web