]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c6475ff91620b868b8e77939abdc1862965e137
tree424171dbc251f1b3f21d1fa6c4871991007e4477
parent955c4308f331600789d6cb73933de59842739ecc
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