IB/mlx5: Refactor code for counters allocation
authorParav Pandit <parav@mellanox.com>
Tue, 23 Jul 2019 07:31:16 +0000 (10:31 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Jul 2019 15:33:28 +0000 (11:33 -0400)
commit5dcecbc96755793e9417a9135b290d16639ec6aa
tree472230b29c12069be5ba4cc3e0db3353d38198cf
parent0058eb589881056b49a4ba15dfa3f1b8db53991c
IB/mlx5: Refactor code for counters allocation

To support per device counters in switchdev mode (instead of
per port counter), refactor query routines to work on mlx5_ib_counter
structure instead of mlx5_ib_port structure.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190723073117.7175-2-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c