Merge branch 'net-dsa-use-more-appropriate-net_name_-constants-for-user-ports'
authorJakub Kicinski <kuba@kernel.org>
Fri, 18 Nov 2022 03:40:13 +0000 (19:40 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Nov 2022 03:40:15 +0000 (19:40 -0800)
commit2ffff1449ddd35cad113614fce2424da235f7560
tree8ce8c6fb4230c98dfa7d7e474143c8962d20f779
parentf20a0a0519f35a3a34236ed2d38b067c5cb22b9f
parentb8790661d90d7bbfb745df40262d13a0e8ae6400
Merge branch 'net-dsa-use-more-appropriate-net_name_-constants-for-user-ports'

Rasmus Villemoes says:

====================
net: dsa: use more appropriate NET_NAME_* constants for user ports

The intention of commit 685343fc3ba6 ("net: add name_assign_type
netdev attribute") was clearly that drivers be switched over one by
one to select appropriate NET_NAME_* constants instead of
NET_NAME_UNKNOWN. This small series attempts to do that for DSA user
ports.

This is obviously and intentionally user-visible changes, so there's a
small chance that it could lead to a regression. To make it easy to
revert either of the "label in DT" and "fallback to eth%d" changes,
this is done as a refactoring which shouldn't introduce any functional
change (but by itself adds code which looks a little odd, with the two
identical assignments in the two branches), followed by changing the
constant used in each case in two different patches.
====================

Link: https://lore.kernel.org/r/20221116105205.1127843-1-linux@rasmusvillemoes.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>