On 2/12/2021 7:15 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <[email protected]> > > This switchdev attribute offers a counterproductive API for a driver > writer, because although br_switchdev_set_port_flag gets passed a > "flags" and a "mask", those are passed piecemeal to the driver, so while > the PRE_BRIDGE_FLAGS listener knows what changed because it has the > "mask", the BRIDGE_FLAGS listener doesn't, because it only has the final > value. But certain drivers can offload only certain combinations of > settings, like for example they cannot change unicast flooding > independently of multicast flooding - they must be both on or both off. > The way the information is passed to switchdev makes drivers not > expressive enough, and unable to reject this request ahead of time, in > the PRE_BRIDGE_FLAGS notifier, so they are forced to reject it during > the deferred BRIDGE_FLAGS attribute, where the rejection is currently > ignored. > > This patch also changes drivers to make use of the "mask" field for edge > detection when possible. > > Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> -- Florian
- Re: [PATCH v5 net-next 01/10] net: switchdev:... Nikolay Aleksandrov
- Re: [PATCH v5 net-next 01/10] net: switchdev:... Grygorii Strashko
- [PATCH v5 net-next 03/10] net: bridge: don't print... Vladimir Oltean
- Re: [PATCH v5 net-next 03/10] net: bridge: do... Nikolay Aleksandrov
- Re: [PATCH v5 net-next 03/10] net: bridge: do... Florian Fainelli
- [PATCH v5 net-next 04/10] net: dsa: configure bett... Vladimir Oltean
- [PATCH v5 net-next 06/10] net: dsa: act as passthr... Vladimir Oltean
- Re: [PATCH v5 net-next 06/10] net: dsa: act a... Florian Fainelli
- [PATCH v5 net-next 05/10] net: switchdev: pass fla... Vladimir Oltean
- Re: [PATCH v5 net-next 05/10] net: switchdev:... Grygorii Strashko
- Re: [PATCH v5 net-next 05/10] net: switchdev:... Florian Fainelli
- [PATCH v5 net-next 08/10] net: mscc: ocelot: use s... Vladimir Oltean
- [PATCH v5 net-next 07/10] net: dsa: felix: restore... Vladimir Oltean
- Re: [PATCH v5 net-next 07/10] net: dsa: felix... Florian Fainelli
- [PATCH v5 net-next 09/10] net: mscc: ocelot: offlo... Vladimir Oltean
- [PATCH v5 net-next 10/10] net: dsa: sja1105: offlo... Vladimir Oltean
- Re: [PATCH v5 net-next 00/10] Cleanup in brport fl... patchwork-bot+netdevbpf
