]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Pass ifindex to mlxsw_sp_ipip_entry_find_by_decap()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:46:58 +0000 (19:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commit648884d06a02ddac2522b7b975e560e522b07cf9
treeb2e14de15fb80eed06d5d123fc5afbe34d912bd6
parentda3c0b704b93913584190de0d8d9ed3fedcb6110
mlxsw: spectrum_router: Pass ifindex to mlxsw_sp_ipip_entry_find_by_decap()

The sole caller of the function will soon only have the ifindex
available, instead of the pointer itself.

Therefore, change the function to take the ifindex as input and have it
get the pointer.

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