]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_dpipe: Take router lock from dpipe code
authorIdo Schimmel <idosch@mellanox.com>
Fri, 21 Feb 2020 17:54:11 +0000 (19:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:24:51 +0000 (21:24 -0800)
commitf104bf50d212d4d3f6ccab74ec272249c4544a47
tree96e2c2c5c0ba565dd8579b170438df782bdea169
parentf333d8279db7ad36751c673e36a86e06b1dd014e
mlxsw: spectrum_dpipe: Take router lock from dpipe code

The dpipe code traverses internal router structures such as neighbours
and adjacency entries and dumps them to user space via netlink. Up until
now the routing code did not have its own locks and relied on RTNL lock
to serialize access. This is going to change with the introduction of
the router lock.

Take the router lock in the code paths where RTNL lock is currently
taken so that the latter could be removed by subsequent patches.

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