mlxsw: spectrum_router: Resolve RIF from nexthop struct instead of neighbour
authorIdo Schimmel <idosch@nvidia.com>
Mon, 23 Nov 2020 07:12:24 +0000 (09:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 20:14:56 +0000 (12:14 -0800)
commit18c4b79d28f9547459ab47d9c93dca03620d1048
tree587999297b84373fcdbfe8d9fbfce3c43a42b2a5
parent919f6aaa3ae95f98ca57c1c1dd4158a30a3bf3ea
mlxsw: spectrum_router: Resolve RIF from nexthop struct instead of neighbour

The two are the same, but for blackhole nexthops we will not have an
associated neighbour struct, so resolve the RIF from the nexthop struct
itself instead.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c