net: dsa: use ports list to setup switches
Use the new ports list instead of iterating over switches and their ports when setting up the switches and their ports. At the same time, provide setup states and messages for ports and switches as it is done for the trees. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
This commit is contained in:

committed by
Jakub Kicinski

parent
7b9a2f4bac
commit
fb35c60cba
@@ -215,9 +215,13 @@ struct dsa_port {
|
||||
* Original copy of the master netdev net_device_ops
|
||||
*/
|
||||
const struct net_device_ops *orig_ndo_ops;
|
||||
|
||||
bool setup;
|
||||
};
|
||||
|
||||
struct dsa_switch {
|
||||
bool setup;
|
||||
|
||||
struct device *dev;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user