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

Use the new ports list instead of iterating over switches and their
ports to find a port from a given node.

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