net: lan966x: Update mdb when enabling/disabling mcast_snooping
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Feb 2022 09:14:52 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Feb 2022 15:00:43 +0000 (15:00 +0000)
commitadd2c844db33d96d5431c864f1ee041d3c456a66
tree6db3d48ce75cfa1a0997b5212cb769a3b1ca6be6
parent47aeea0d57e80c9449448802aede54526a3d6305
net: lan966x: Update mdb when enabling/disabling mcast_snooping

When the multicast snooping is disabled, the mdb entries should be
removed from the HW, but they still need to be kept in memory for when
the mcast_snooping will be enabled again.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
drivers/net/ethernet/microchip/lan966x/lan966x_mdb.c
drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c