]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66f0891afd346e391aac1d6f2cb1eb6ad0d08318
treead64b41ecf5cbe49c156bbc02b59a74d6468b7be
parent15dca949e887bb1c31d969e3f186f8e1d0d2efca
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