On 2/10/2021 1:14 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > We should not be unconditionally enabling address learning, since doing > that is actively detrimential when a port is standalone and not offloading > a bridge. Namely, if a port in the switch is standalone and others are > offloading the bridge, then we could enter a situation where we learn an > address towards the standalone port, but the bridged ports could not > forward the packet there, because the CPU is the only path between the > standalone and the bridged ports. The solution of course is to not > enable address learning unless the bridge asks for it. > > We need to set up the initial port flags for no learning and flooding > everything, then the bridge takes over. The flood configuration was > already configured ok in ocelot_init, we just need to disable learning > in ocelot_init_port. > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> > Reviewed-by: Alexandre Belloni <alexandre.bell...@bootlin.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- Re: [PATCH v3 net-next 06/11] net: dsa: kill .por... Florian Fainelli
- [PATCH v3 net-next 08/11] net: bridge: put SWITCHDEV_A... Vladimir Oltean
- Re: [PATCH v3 net-next 08/11] net: bridge: put SW... Nikolay Aleksandrov
- [PATCH v3 net-next 09/11] net: mscc: ocelot: use separ... Vladimir Oltean
- Re: [PATCH v3 net-next 09/11] net: mscc: ocelot: ... Florian Fainelli
- [PATCH v3 net-next 07/11] net: prep switchdev drivers ... Vladimir Oltean
- Re: [PATCH v3 net-next 07/11] net: prep switchdev... Ido Schimmel
- Re: [PATCH v3 net-next 07/11] net: prep switc... Vladimir Oltean
- Re: [PATCH v3 net-next 07/11] net: prep switchdev... David Miller
- [PATCH v3 net-next 10/11] net: mscc: ocelot: offload b... Vladimir Oltean
- Re: [PATCH v3 net-next 10/11] net: mscc: ocelot: ... Florian Fainelli
- [PATCH v3 net-next 11/11] net: dsa: sja1105: offload b... Vladimir Oltean
- Re: [PATCH v3 net-next 00/11] Cleanup in brport flags ... Nikolay Aleksandrov
- Re: [PATCH v3 net-next 00/11] Cleanup in brport f... Vladimir Oltean
- Re: [PATCH v3 net-next 00/11] Cleanup in brpo... Nikolay Aleksandrov
- Re: [PATCH v3 net-next 00/11] Cleanup in ... Vladimir Oltean
- Re: [PATCH v3 net-next 00/11] Cleanup... Nikolay Aleksandrov
- Re: [PATCH v3 net-next 00/11] Cl... Vladimir Oltean
- Re: [PATCH v3 net-next 00/11... Nikolay Aleksandrov
- Re: [PATCH v3 net-next 00/11... Ido Schimmel
- Re: [PATCH v3 net-next 00/11... Vladimir Oltean