]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Pass nexthop netdev to mlxsw_sp_nexthop4_type_init()
authorIdo Schimmel <idosch@nvidia.com>
Fri, 13 Nov 2020 16:05:55 +0000 (18:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:04 +0000 (16:55 -0800)
commit1211cb9f391ff1f7c21fbda68b4185acde31c1c1
treecc285ac4209d25e77ef732d538f0190f414f4773
parent86f0906d3247fd496046e5aed9b33393030f6baf
mlxsw: spectrum_router: Pass nexthop netdev to mlxsw_sp_nexthop4_type_init()

Instead of passing the nexthop 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