RDMA/restrack: Introduce statistic counter
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:31 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:54 +0000 (10:22 -0300)
commit7ade1ff96c7aa7e10445688a433d7ae39a13c6c9
tree6fce95ac1437bf182495a4d95f38ad849dbe7975
parent5600a410ea24cb8467abdd4b8530961ff4f14907
RDMA/restrack: Introduce statistic counter

Introduce statistic counter as a new resource. It allows a user to monitor
specific objects (e.g., QPs) by binding to a counter.

In some cases a user counter resource is created with task other then
"current", because its creation is done as part of rdmatool call.

Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/restrack.c
include/rdma/rdma_counter.h [new file with mode: 0644]
include/rdma/restrack.h