commit | c43ef22843db4a415d43854eaae4b08b9dcae394 | [log] [tgz] |
---|---|---|
author | Ido Schimmel <idosch@mellanox.com> | Thu Feb 20 09:07:53 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 20 10:04:34 2020 -0800 |
tree | 6789954609c7cc1397ee7dff2e1a11d279c4d742 | |
parent | eb833eec3b4cad9d5ba54d573f88f756e4c5fb84 [diff] |
mlxsw: spectrum_router: Do not assume RTNL is taken during nexthop init RTNL is going to be removed from route insertion path, so use __in_dev_get_rcu() from an RCU read-side critical section instead of __in_dev_get_rtnl() which assumes RTNL is taken. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>