net: dsa: felix: perform MDB migration based on ocelot->multicast list
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 5 May 2022 16:22:12 +0000 (19:22 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 May 2022 04:00:12 +0000 (21:00 -0700)
commit28de0f9fec5a84bd5b56d6364432a8730eac410a
tree7b78c8a6e970ff85eefd890b558b21f77feec610
parenta51c1c3f3218c74c07fed55ea2ad5b18c374dc25
net: dsa: felix: perform MDB migration based on ocelot->multicast list

The felix driver is the only user of dsa_port_walk_mdbs(), and there
isn't even a good reason for it, considering that the host MDB entries
are already saved by the ocelot switch lib in the ocelot->multicast list.

Rewrite the multicast entry migration procedure around the
ocelot->multicast list so we can delete dsa_port_walk_mdbs().

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot.c
include/soc/mscc/ocelot.h