mlxsw: spectrum_mr: Protect multicast route list with a lock
authorIdo Schimmel <idosch@mellanox.com>
Fri, 21 Feb 2020 17:54:06 +0000 (19:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:24:51 +0000 (21:24 -0800)
commitf38656d067257cc43b652958dd154e1ab0773701
tree1c394cd94aa4bb82c0edd2d4b3a1c9fccedc2095
parentc366de85894f076b1790b24deec910c2503d9e01
mlxsw: spectrum_mr: Protect multicast route list with a lock

Protect the per-table multicast route list with a lock and remove RTNL
from the delayed work that periodically updates the kernel about packets
and bytes statistics from each multicast route.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c