User space application which uses counters functionality, is expected to allocate/release the counters resources by calling create/destroy verbs and in turn get a unique handle that can be used to attach the counters to its counted type.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -55,6 +55,7 @@ enum uverbs_default_objects { · 54 unmodified lines | ||
| 55 | 55 | UVERBS_OBJECT_WQ, |
| 56 | 56 | UVERBS_OBJECT_FLOW_ACTION, |
| 57 | 57 | UVERBS_OBJECT_DM, |
| 58 | + UVERBS_OBJECT_COUNTERS, | |
| 58 | 59 | }; |
| 59 | 60 | |
| 60 | 61 | enum { |
| @@ -131,4 +132,17 @@ enum uverbs_methods_mr { · 70 unmodified lines | ||
| 131 | 132 | UVERBS_METHOD_DM_MR_REG, |
| 132 | 133 | }; |
| 133 | 134 | |
| 135 | +enum uverbs_attrs_create_counters_cmd_attr_ids { | |
| 136 | + UVERBS_ATTR_CREATE_COUNTERS_HANDLE, | |
| 137 | +}; | |
| 138 | + | |
| 139 | +enum uverbs_attrs_destroy_counters_cmd_attr_ids { | |
| 140 | + UVERBS_ATTR_DESTROY_COUNTERS_HANDLE, | |
| 141 | +}; | |
| 142 | + | |
| 143 | +enum uverbs_methods_actions_counters_ops { | |
| 144 | + UVERBS_METHOD_COUNTERS_CREATE, | |
| 145 | + UVERBS_METHOD_COUNTERS_DESTROY, | |
| 146 | +}; | |
| 147 | + | |
| 134 | 148 | #endif |