]> 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)
commitd295a80d922b5349afcc7da505e10b18d7548d4a
treead64b41ecf5cbe49c156bbc02b59a74d6468b7be
parentf2a173c44616d04bb92e5f3264333b8ac42d262e
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