net: dsa: felix: update bridge fwd mask from ocelot lib when changing tag_8021q CPU
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 21 May 2022 21:37:40 +0000 (00:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2022 09:39:54 +0000 (10:39 +0100)
commita72e23dd679c632bcf6ab47a3a1a58c1e777713a
treead64b41ecf5cbe49c156bbc02b59a74d6468b7be
parent61be79ba2d90162b0b213384f35eb8db7eb183b8
net: dsa: felix: update bridge fwd mask from ocelot lib when changing tag_8021q CPU

Add more logic to ocelot_port_{,un}set_dsa_8021q_cpu() from the ocelot
switch lib by encapsulating the ocelot_apply_bridge_fwd_mask() call that
felix used to have.

This is necessary because the CPU port change procedure will also need
to do this, and it's good to reduce code duplication by having an entry
point in the ocelot switch lib that does all that is needed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot.c
include/soc/mscc/ocelot.h