7ade1ff96c
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>
19 lines
380 B
C
19 lines
380 B
C
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
|
|
/*
|
|
* Copyright (c) 2019 Mellanox Technologies. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _RDMA_COUNTER_H_
|
|
#define _RDMA_COUNTER_H_
|
|
|
|
#include <rdma/ib_verbs.h>
|
|
#include <rdma/restrack.h>
|
|
|
|
struct rdma_counter {
|
|
struct rdma_restrack_entry res;
|
|
struct ib_device *device;
|
|
uint32_t id;
|
|
u8 port;
|
|
};
|
|
#endif /* _RDMA_COUNTER_H_ */
|