]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7da77c4bbcf33297c5249812ad81f2c2600a3144
tree1d92e62ea9b51e26c3579bcae9ddd3f56920256b
parent32cd54f2fb411be98a4c54d07d9d7be33e9245a4
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