]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlxsw: spectrum_router: Re-order mlxsw_sp_nexthop6_group_get()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:47:01 +0000 (19:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commit5b9954e1e7b839ac6a5a773cb498884dd4f947f1
tree8048f2fd438e08a0d009e19e2a7192d009aa5072
parentc0351b7c25ffd52408c1297fbe552f185d5aac3f
mlxsw: spectrum_router: Re-order mlxsw_sp_nexthop6_group_get()

Attach the FIB entry to the nexthop group after setting the offload flag
on the IPv6 FIB info (i.e., 'struct fib6_info'). The second operation is
not needed when the nexthop group is a nexthop object. This will allow
us to have a common exit path from the function, regardless of the
nexthop group's type.

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