]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: use ports list to find first CPU port
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:23 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commit9a20add4f58dcf3d88284c8c8cbea55c0dd05d02
tree9ea213a9537dd29484ba2edf38b590121957d65e
parent6725ec704005ef7a7c55a0895102997f970352e8
net: dsa: use ports list to find first CPU port

Use the new ports list instead of iterating over switches and their
ports when looking up the first CPU port in the tree.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/dsa/dsa2.c