OSDN Git Service

mlxsw: spectrum_router: Enable resolution of nexthop groups from nexthop objects
authorIdo Schimmel <idosch@nvidia.com>
Thu, 19 Nov 2020 13:08:42 +0000 (15:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 23:20:20 +0000 (15:20 -0800)
commitc25db3a77f61ce82f645545f18c865b671db50ea
tree7726302f6c1bc83ceb527f4391b781699bdfbc93
parent2a014b200bbd973cc96e082a5bc445fe20b50f32
mlxsw: spectrum_router: Enable resolution of nexthop groups from nexthop objects

If the FIB info (i.e, 'struct fib_info', 'struct fib6_info') uses a
nexthop object, then use the object's identifier to resolve the nexthop
group.

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