mlxsw: spectrum_router: Pass virtual router parameters directly instead of pointer
authorIdo Schimmel <idosch@nvidia.com>
Wed, 25 Nov 2020 19:35:02 +0000 (21:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Nov 2020 01:17:33 +0000 (17:17 -0800)
commit40e4413d5dde8e4c2f57e1f68576e17fc0fffcf1
tree97db7b2efa6b2f47e86ccac5bf49b6351f77cca8
parent1c2c5eb6e10828bcfef1ac5f1f688ff457c04599
mlxsw: spectrum_router: Pass virtual router parameters directly instead of pointer

mlxsw_sp_adj_index_mass_update_vr() only needs the virtual router's
identifier and protocol, so pass them directly. In a subsequent patch
the caller will not have access to 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