Allow the async FD to be allocated separately from the context. This is necessary to introduce the ioctl to create a context, as an ioctl should only ever create a single uobject at a time. If multiple async FDs are created then the first one is used to deliver affiliated events from any ib_uevent_object, with all subsequent ones will receive only unaffiliated events.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -242,4 +242,12 @@ enum uverbs_attrs_flow_destroy_ids { · 241 unmodified lines | |||
| 242 | UVERBS_ATTR_DESTROY_FLOW_HANDLE, | 242 | UVERBS_ATTR_DESTROY_FLOW_HANDLE, |
| 243 | }; | 243 | }; |
| 244 | 244 | ||
| 245 | enum uverbs_method_async_event { | ||
| 246 | UVERBS_METHOD_ASYNC_EVENT_ALLOC, | ||
| 247 | }; | ||
| 248 | |||
| 249 | enum uverbs_attrs_async_event_create { | ||
| 250 | UVERBS_ATTR_ASYNC_EVENT_ALLOC_FD_HANDLE, | ||
| 251 | }; | ||
| 252 | |||
| 245 | #endif | 253 | #endif |