mlxsw: spectrum_router: Take router lock from exported helpers
authorIdo Schimmel <idosch@mellanox.com>
Fri, 21 Feb 2020 17:54:14 +0000 (19:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:24:51 +0000 (21:24 -0800)
commit50c173c3a1810d3441aaa074c3ba452238cad60a
tree84a2857d76500acdf95c95017aacaf81c58906d1
parent1be54763e156d5f1888ce272416806f77ae8b816
mlxsw: spectrum_router: Take router lock from exported helpers

The routing code exports some helper functions that can be called from
other driver modules such as the bridge. These helpers are never called
with the router lock already held and therefore need to take it in order
to serialize access to shared router structures.

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