mlxsw: spectrum_router: Drop mlxsw_sp arg from counter alloc/free functions
authorPetr Machata <petrm@nvidia.com>
Wed, 2 Mar 2022 16:31:25 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 10:37:23 +0000 (10:37 +0000)
commit9834e2467c868a670e469ef1176e991ac4aac53d
tree6887367cead9ff75377dc06a59edce7db79b166d
parent8fe96f586b8326073ab193f2e5cf951d7cd4d609
mlxsw: spectrum_router: Drop mlxsw_sp arg from counter alloc/free functions

The mlxsw_sp reference is carried by the mlxsw_sp_rif object that is passed
to these functions as well. Just deduce the former from the latter,
and drop the explicit mlxsw_sp parameter. Adapt callers.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h