mlxsw: spectrum_switchdev: Disable mdb when mc is disabled
authorNogah Frankel <nogahf@mellanox.com>
Wed, 20 Sep 2017 14:15:09 +0000 (16:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 01:03:12 +0000 (18:03 -0700)
commit2e3496cd3488729200ff0f1c6381b7016ecd41bd
tree1d92e62ea9b51e26c3579bcae9ddd3f56920256b
parent846fd8a0e7dcd9f455a86dc17ddf0a51c124f9c0
mlxsw: spectrum_switchdev: Disable mdb when mc is disabled

Remove all the mdb entries from the HW when mc is being disabled and
re-write them when it is being enabled.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c