]> 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)
commitdabe8549e03e8fadefcadf36ab495cfd80099cd9
treeb2e14de15fb80eed06d5d123fc5afbe34d912bd6
parent0ab258f472e88bcabcda98c0b656ea1e8e2db2a3
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