]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b3a8e842b0d55d062a0fefd716f8869a45d33c3
tree587999297b84373fcdbfe8d9fbfce3c43a42b2a5
parent955f59236a336f0dd65c14a6c455af52ce517850
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