]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d796b943029b0f9e46b3944a02ae8a3f0a3172f
tree84a2857d76500acdf95c95017aacaf81c58906d1
parent6cde7e5673a68ad70cd1c692bb586dacde52df78
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