mbox series

[v3,0/3] net: dsa: use more appropriate NET_NAME_* constants for user ports

Message ID 20221116105205.1127843-1-linux@rasmusvillemoes.dk (mailing list archive)
Headers show
Series net: dsa: use more appropriate NET_NAME_* constants for user ports | expand

Message

Rasmus Villemoes Nov. 16, 2022, 10:52 a.m. UTC
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.

Rasmus Villemoes (3):
  net: dsa: refactor name assignment for user ports
  net: dsa: use NET_NAME_PREDICTABLE for user ports with name given in
    DT
  net: dsa: set name_assign_type to NET_NAME_ENUM for enumerated user
    ports

 net/dsa/dsa2.c  |  3 ---
 net/dsa/slave.c | 13 +++++++++++--
 2 files changed, 11 insertions(+), 5 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 18, 2022, 4:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 16 Nov 2022 11:52:01 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [v3,1/3] net: dsa: refactor name assignment for user ports
    https://git.kernel.org/netdev/net-next/c/0171a1d22bb9
  - [v3,2/3] net: dsa: use NET_NAME_PREDICTABLE for user ports with name given in DT
    https://git.kernel.org/netdev/net-next/c/6fdb03842040
  - [v3,3/3] net: dsa: set name_assign_type to NET_NAME_ENUM for enumerated user ports
    https://git.kernel.org/netdev/net-next/c/b8790661d90d

You are awesome, thank you!