]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ae47d3aa4632bc39b37f6800f582e171d7d8abe
tree477c5bdc4c6fe7b06b02f589d4577277fa836775
parentfba48e4fb70a2c44fa0645278e7813e76daebdfc
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