OSDN Git Service

RDMA/mlx5: Expand switchdev Q-counters to expose representor statistics
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 23 Mar 2023 10:13:52 +0000 (12:13 +0200)
committerLeon Romanovsky <leon@kernel.org>
Wed, 29 Mar 2023 07:09:23 +0000 (10:09 +0300)
commitd22467a71ebe96ff5ab7e000dbef60d4ea76e5b0
tree0e38b743e596823cc5b16c952f4cf4d6e40fe2c4
parentbbe371399ed004f4deb57151ad36dcc720a0d687
RDMA/mlx5: Expand switchdev Q-counters to expose representor statistics

Previously for switchdev only per device counters were supported.

Currently we allocate counters for switchdev per port, which also
includes the ports that belong to VF representors in order to expose
them to users through the rdma tool, allowing the host to track the VFs
statistics through their representors counters.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/ea31e1103c125cd27931ba213f307cde30d2eaed.1679566038.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/counters.c