]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mlxsw: spectrum_router: Pass nexthop netdev to mlxsw_sp_nexthop6_type_init()
authorIdo Schimmel <idosch@nvidia.com>
Fri, 13 Nov 2020 16:05:54 +0000 (18:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:04 +0000 (16:55 -0800)
commit4dd38da54aa979f41e928ab10656896115697910
treed30ac8b7b07e5341ef5422c31a7c6cfcdfd8592a
parent7ba7bc55cf2dfbf5d53cf8ad9cb8bddfa3ebfc13
mlxsw: spectrum_router: Pass nexthop netdev to mlxsw_sp_nexthop6_type_init()

Instead of passing the route and resolving the nexthop netdev from it,
pass the nexthop netdev directly.

This will later allow us to consolidate code paths between IPv4 and IPv6
code.

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