mlxsw: Keep track of number of allocated RIFs
authorPetr Machata <petrm@nvidia.com>
Thu, 16 Jun 2022 10:42:36 +0000 (13:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 09:31:33 +0000 (10:31 +0100)
commitb9840fe035acd4b91f30fb322328c5c196d12ab6
tree477c5bdc4c6fe7b06b02f589d4577277fa836775
parent4b1cc357f84347dbc9584aa2f5dae02df7524dfc
mlxsw: Keep track of number of allocated RIFs

In order to expose number of RIFs as a resource, it is going to be handy
to have the number of currently-allocated RIFs as a single number.
Introduce such.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@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_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h