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>
This commit is contained in:
parent
51d7a53874
commit
ebb6796bd3
2 changed files with 65 additions and 1 deletions
|
|
@ -140,9 +140,16 @@ enum uverbs_attrs_destroy_counters_cmd_attr_ids {
|
|||
UVERBS_ATTR_DESTROY_COUNTERS_HANDLE,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_read_counters_cmd_attr_ids {
|
||||
UVERBS_ATTR_READ_COUNTERS_HANDLE,
|
||||
UVERBS_ATTR_READ_COUNTERS_BUFF,
|
||||
UVERBS_ATTR_READ_COUNTERS_FLAGS,
|
||||
};
|
||||
|
||||
enum uverbs_methods_actions_counters_ops {
|
||||
UVERBS_METHOD_COUNTERS_CREATE,
|
||||
UVERBS_METHOD_COUNTERS_DESTROY,
|
||||
UVERBS_METHOD_COUNTERS_READ,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue