]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3332dad9949c97211ee58c5d02736e47b0813db
tree7b78c8a6e970ff85eefd890b558b21f77feec610
parent4aa9eaa4d70980d15f17a8d1253e1fc7067257de
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