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: NVivien Didelot <vivien.didelot@gmail.com> Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
Showing
想要评论请 注册 或 登录