]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Set FIB entry's type based on nexthop group
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:47:00 +0000 (19:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commit11b578b2fd70d73faf5d08cd9a62f44fa92179b5
tree8f12ab8c9412afed019544ad0913b7be30384ae4
parente8e9bc58c298d2ac79fe560728934e61f0fcf023
mlxsw: spectrum_router: Set FIB entry's type based on nexthop group

The previous patch associated a nexthop group with the FIB entry before
the entry's type is determined.

Make use of the nexthop group when determining the entry's type instead
of relying on helpers that assume that the nexthop info is not a nexthop
object (i.e., 'struct nexthop').

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