]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Separate counters from main.c
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 2 Jul 2020 08:18:06 +0000 (11:18 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 7 Jul 2020 17:05:51 +0000 (14:05 -0300)
commit236b6f62493edd150f45d714f8ecf62f8a2c4475
tree46a08cff8f8757adb394384150ed09a23b132035
parentdd5a1e9c5de97ac02b18d148afd2859202bfdaae
RDMA/mlx5: Separate counters from main.c

There are number of counters types supported in mlx5_ib: HW counters,
congestion counters, Q-counters and flow counters. Almost all supporting
code was placed in main.c that made almost impossible to maintain the code
anymore. Let's create separate code namespace for the counters to easy
future generalization effort.

Link: https://lore.kernel.org/r/20200702081809.423482-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/Makefile
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/counters.c [new file with mode: 0644]
drivers/infiniband/hw/mlx5/counters.h [new file with mode: 0644]
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/qp.h