aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorRaed Salem <raeds@mellanox.com>2018-05-31 09:43:34 -0400
committerLeon Romanovsky <leonro@mellanox.com>2018-06-02 00:33:55 -0400
commitebb6796bd397f3fb9b2b46398b2fbb585e1b8bb6 (patch)
tree424171dbc251f1b3f21d1fa6c4871991007e4477 /include/uapi
parent51d7a5387464f1b1fee3f2db9287409189d83d65 (diff)
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>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/rdma/ib_user_ioctl_cmds.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_ioctl_cmds.h b/include/uapi/rdma/ib_user_ioctl_cmds.h
index c28ce62d2e40..888ac5975a6c 100644
--- a/include/uapi/rdma/ib_user_ioctl_cmds.h
+++ b/include/uapi/rdma/ib_user_ioctl_cmds.h
@@ -140,9 +140,16 @@ enum uverbs_attrs_destroy_counters_cmd_attr_ids {
140 UVERBS_ATTR_DESTROY_COUNTERS_HANDLE, 140 UVERBS_ATTR_DESTROY_COUNTERS_HANDLE,
141}; 141};
142 142
143enum uverbs_attrs_read_counters_cmd_attr_ids {
144 UVERBS_ATTR_READ_COUNTERS_HANDLE,
145 UVERBS_ATTR_READ_COUNTERS_BUFF,
146 UVERBS_ATTR_READ_COUNTERS_FLAGS,
147};
148
143enum uverbs_methods_actions_counters_ops { 149enum uverbs_methods_actions_counters_ops {
144 UVERBS_METHOD_COUNTERS_CREATE, 150 UVERBS_METHOD_COUNTERS_CREATE,
145 UVERBS_METHOD_COUNTERS_DESTROY, 151 UVERBS_METHOD_COUNTERS_DESTROY,
152 UVERBS_METHOD_COUNTERS_READ,
146}; 153};
147 154
148#endif 155#endif