]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Set ifindex for IPv4 nexthops
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:46:57 +0000 (19:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commit0ab258f472e88bcabcda98c0b656ea1e8e2db2a3
tree90ef25971d828ec68af912b410120aa06529bfdb
parentf49480feb2dad22405b03b1c3a4d3baa82eb2371
mlxsw: spectrum_router: Set ifindex for IPv4 nexthops

The ifindex of the nexthop device was never set for IPv4 nexthops,
unlike IPv6 nexthops. This went unnoticed since only IPv6 nexthops use
it.

Set the ifindex for IPv4 nexthops in order to be consistent with IPv6
and also because it will be used by a later patch.

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