mlxsw: spectrum_router: Store FIB info in route
authorIdo Schimmel <idosch@nvidia.com>
Fri, 13 Nov 2020 16:05:49 +0000 (18:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:03 +0000 (16:55 -0800)
commit9ce254d9fbdda66fc60d464bf3ef815bb6585286
tree0beafe53fc5bf59c434fc8ea831a36c0e9cc94aa
parent02d8fdcad7cbaf4b786fbd694b62686ed8d8935b
mlxsw: spectrum_router: Store FIB info in route

When needed, IPv4 routes fetch the FIB info (i.e., 'struct fib_info')
from their associated nexthop group. This will not work when the nexthop
group represents a nexthop object (i.e., 'struct nexthop'), as it will
only have access to the nexthop's identifier.

Instead, store the FIB info in the route itself.

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