On 10/19/2019 8:19 PM, Vivien Didelot wrote: > Instead of digging into the other dsa_switch structures of the fabric > and relying too much on the dsa_to_port helper, use the new list > of switch fabric ports to remap the Port VLAN Map of local bridge > group members or remap the Port VLAN Table entry of external bridge > group members. > > Signed-off-by: Vivien Didelot <vivien.dide...@gmail.com> > --- [snip] > - for (port = 0; port < ds->num_ports; ++port) { > - if (dsa_to_port(ds, port)->bridge_dev == br) { > - err = mv88e6xxx_pvt_map(chip, dev, port); > + list_for_each_entry(dp, &dst->ports, list) { > + /* Remap the Port VLAN Map of local bridge group members and > + * remap the PVT entry of external bridge group members. > + */ If you do a v2, I would tend to put these comments under the appropriate branches taken below for clarify although the code is actually clearer this want than it was before IMHO, so up to you :) Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH net-next 03/16] net: dsa: use ports list in dsa_to... Vivien Didelot
- Re: [PATCH net-next 03/16] net: dsa: use ports list ... Florian Fainelli
- Re: [PATCH net-next 03/16] net: dsa: use ports list ... Andrew Lunn
- [PATCH net-next 06/16] net: dsa: use ports list for routi... Vivien Didelot
- Re: [PATCH net-next 06/16] net: dsa: use ports list ... Florian Fainelli
- Re: [PATCH net-next 06/16] net: dsa: use ports list ... Andrew Lunn
- [PATCH net-next 11/16] net: dsa: mv88e6xxx: silently skip... Vivien Didelot
- Re: [PATCH net-next 11/16] net: dsa: mv88e6xxx: sile... Florian Fainelli
- [PATCH net-next 14/16] net: dsa: sja1105: register switch... Vivien Didelot
- [PATCH net-next 13/16] net: dsa: mv88e6xxx: use ports lis... Vivien Didelot
- Re: [PATCH net-next 13/16] net: dsa: mv88e6xxx: use ... Florian Fainelli
- [PATCH net-next 12/16] net: dsa: mv88e6xxx: use ports lis... Vivien Didelot
- Re: [PATCH net-next 12/16] net: dsa: mv88e6xxx: use ... Florian Fainelli
- [PATCH net-next 15/16] net: dsa: allocate ports on touch Vivien Didelot
- Re: [PATCH net-next 15/16] net: dsa: allocate ports ... Florian Fainelli
- [PATCH net-next 16/16] net: dsa: remove dsa_switch_alloc ... Vivien Didelot
- Re: [PATCH net-next 16/16] net: dsa: remove dsa_swit... Florian Fainelli
- [PATCH net-next 05/16] net: dsa: use ports list to setup ... Vivien Didelot
- Re: [PATCH net-next 05/16] net: dsa: use ports list ... Florian Fainelli
- Re: [PATCH net-next 05/16] net: dsa: use ports l... Andrew Lunn
- Re: [PATCH net-next 05/16] net: dsa: use por... Vivien Didelot