diff options
| author | Matan Barak <[email protected]> | 2017-04-04 13:31:47 +0300 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-04-05 13:28:04 -0400 |
| commit | 1e7710f3f6563940bb6bbc94aa8eadfd344a86af (patch) | |
| tree | fcb76beff0bfd2e9c24e7962c5afa9c40fef25d6 /tools/perf/scripts | |
| parent | cf8966b3477d5e6545393bb4499f2051ea554c62 (diff) | |
IB/core: Change completion channel to use the reworked objects schema
This patch adds the standard fd based type - completion_channel.
The completion_channel is now prefixed with ib_uobject, similarly
to the rest of the uobjects.
This requires a few changes:
(1) We define a new completion channel fd based object type.
(2) completion_event and async_event are now two different types.
This means they use different fops.
(3) We release the completion_channel exactly as we release other
idr based objects.
(4) Since ib_uobjects are already kref-ed, we only add the kref to the
async event.
A fd object requires filling out several parameters. Its op pointer
should point to uverbs_fd_ops and its size should be at least the
size if ib_uobject. We use a macro to make the type declaration
easier.
Signed-off-by: Matan Barak <[email protected]>
Reviewed-by: Yishai Hadas <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions