]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Expose router struct to internal users
authorIdo Schimmel <idosch@mellanox.com>
Fri, 21 Feb 2020 17:54:07 +0000 (19:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:24:51 +0000 (21:24 -0800)
commit4e41cd330a152f64f4665b99f73c03235419612a
tree1b0250ad6ce97aea3253840b7d0ce9edef5adb8a
parentcdc4bb56b140d652decabce0743d0138cc19e095
mlxsw: spectrum_router: Expose router struct to internal users

The dpipe code accesses internal router data structures and acquires
RTNL to protect against their changes. Subsequent patches will remove
reliance on RTNL and introduce a dedicated lock to protect router data
structures.

Publish the router struct to internal users such as the dpipe, so that
they could acquire it instead of RTNL.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h