]> 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)
commit5af472fb728de5b59ceb08ce901708ace8f240d2
tree587999297b84373fcdbfe8d9fbfce3c43a42b2a5
parentb9da2b95fd18c847f293020172c6f3d0859e7f59
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