]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit955c4308f331600789d6cb73933de59842739ecc
tree0e2e67a88f24c44e905a26288b1a19df5aecc445
parent3d4578d0e84ec330a572c020180419bf94ed38cd
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