mlxsw: spectrum_router: Take router lock from inside routing code
authorIdo Schimmel <idosch@mellanox.com>
Fri, 21 Feb 2020 17:54:10 +0000 (19:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:24:51 +0000 (21:24 -0800)
commit894276e85c1602b0b7e309ed03700380cdf3245c
tree211fb658ae4fd3847826710cf5e6a557b613b6f6
parent20bf5d82bbec128c3ead91c6f98cfcd45df21013
mlxsw: spectrum_router: Take router lock from inside routing code

There are several work items in the routing code that currently rely on
RTNL lock to guard against concurrent changes. Have these work items
acquire the router lock in preparation for the removal for RTNL lock
from the routing code.

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_router.c