linux/net/dsa
Vivien Didelot 9f91484f6f net: dsa: make "label" property optional for dsa2
In the new DTS bindings for DSA (dsa2), the "ethernet" and "link"
phandles are respectively mandatory and exclusive to CPU port and DSA
link device tree nodes.

Simplify dsa2.c a bit by checking the presence of such phandle instead
of checking the redundant "label" property.

Then the Linux philosophy for Ethernet switch ports is to expose them to
userspace as standard NICs by default. Thus use the standard enumerated
"eth%d" device name if no "label" property is provided for a user port.
This allows to save DTS files from subjective net device names.

If one wants to rename an interface, udev rules can be used as usual.

Of course the current behavior is unchanged, and the optional "label"
property for user ports has precedence over the enumerated name.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-11 09:26:15 -05:00
..
dsa2.c net: dsa: make "label" property optional for dsa2 2017-01-11 09:26:15 -05:00
dsa_priv.h net: dsa: move HWMON support to its own file 2017-01-07 22:37:22 -05:00
dsa.c net: dsa: Make dsa_switch_ops const 2017-01-09 15:44:50 -05:00
hwmon.c net: dsa: Make dsa_switch_ops const 2017-01-09 15:44:50 -05:00
Kconfig net: dsa: select NET_SWITCHDEV 2017-01-09 17:17:30 -05:00
Makefile net: dsa: move HWMON support to its own file 2017-01-07 22:37:22 -05:00
slave.c net: dsa: remove version string 2017-01-06 15:49:10 -05:00
tag_brcm.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00
tag_dsa.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00
tag_edsa.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00
tag_qca.c net-next: dsa: add Qualcomm tag RX/TX handler 2016-09-16 04:31:51 -04:00
tag_trailer.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00