Re: [PATCH v3 net-next 3/4] net: dsa: introduce a dsa_switch_find function

2020-05-07 Thread Florian Fainelli
On 5/3/2020 3:12 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Somewhat similar to dsa_tree_find, dsa_switch_find returns a dsa_switch > structure pointer by searching for its tree index and switch index (the > parameters from dsa,member). To be used, for example, by drivers who > imp

[PATCH v3 net-next 3/4] net: dsa: introduce a dsa_switch_find function

2020-05-03 Thread Vladimir Oltean
From: Vladimir Oltean Somewhat similar to dsa_tree_find, dsa_switch_find returns a dsa_switch structure pointer by searching for its tree index and switch index (the parameters from dsa,member). To be used, for example, by drivers who implement .crosschip_bridge_join and need a reference to the o