summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-01-29 03:00:02 +0200
committerJakub Kicinski <kuba@kernel.org>2021-01-29 21:24:30 -0800
commit9b521250bff4dd04592651bb8fab07ecfcd2fb64 (patch)
tree83720b4ac1affa98c6804b8179fa6612d272886d /include/soc
parent50c6cc5b9283efdbf72162dee467bd68c7167807 (diff)
downloadlinux-9b521250bff4dd04592651bb8fab07ecfcd2fb64.tar.gz
linux-9b521250bff4dd04592651bb8fab07ecfcd2fb64.tar.bz2
linux-9b521250bff4dd04592651bb8fab07ecfcd2fb64.zip
net: mscc: ocelot: reapply bridge forwarding mask on bonding join/leave
Applying the bridge forwarding mask currently is done only on the STP state changes for any port. But it depends on both STP state changes, and bonding interface state changes. Export the bit that recalculates the forwarding mask so that it could be reused, and call it when a port starts and stops offloading a bonding interface. Now that the logic is split into a separate function, we can rename "p" into "port", since the "port" variable was already taken in ocelot_bridge_stp_state_set. Also, we can rename "i" into "lag", to make it more clear what is it that we're iterating through. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions