IB/core: Introduce counters read verb
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:33 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:54 +0000 (07:33 +0300)
commit51d7a5387464f1b1fee3f2db9287409189d83d65
tree0e2e67a88f24c44e905a26288b1a19df5aecc445
parentd9a5a6441e9dde080e9d69e736c623f7369472ed
IB/core: Introduce counters read verb

The user supplies counters instance and a reference to an output array of
uint64_t.  The driver reads the hardware counters values and writes them
to the output index location in the user supplied array.  All counters
values are represented as uint64_t types.

To be able to successfully read the data the counters must be first bound
to an IB object.

Downstream patches will present binding method for flow counters.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h