IB/uverbs: Add read counters support
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:34 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:55 +0000 (07:33 +0300)
commitebb6796bd397f3fb9b2b46398b2fbb585e1b8bb6
tree424171dbc251f1b3f21d1fa6c4871991007e4477
parent51d7a5387464f1b1fee3f2db9287409189d83d65
IB/uverbs: Add read counters support

This patch exposes the read counters verb to user space applications.  By
that verb the user can read the hardware counters which are associated
with the counters object.

The application needs to provide a sufficient memory to hold the
statistics.

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>
drivers/infiniband/core/uverbs_std_types_counters.c
include/uapi/rdma/ib_user_ioctl_cmds.h