]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf847efad2336a441cfb482998fb2ee953e579a0
tree97db7b2efa6b2f47e86ccac5bf49b6351f77cca8
parentff232783377a2a5bffa5350fb7cc7f455e518853
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