diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-11-28 13:16:43 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-12-03 14:58:25 -0500 |
commit | 606152107bbdbc0e21f25e0d15ef2787a4ab90fd (patch) | |
tree | 00a99cd545378fb77d8697229af2b2513372d96f /include/rdma/ib_verbs.h | |
parent | 61d69528689b96984970388b319b0c92f5679274 (diff) | |
download | linux-stable-606152107bbdbc0e21f25e0d15ef2787a4ab90fd.tar.gz linux-stable-606152107bbdbc0e21f25e0d15ef2787a4ab90fd.tar.bz2 linux-stable-606152107bbdbc0e21f25e0d15ef2787a4ab90fd.zip |
RDMA/restrack: Track ucontext
Add ability to track allocated ib_ucontext, which are limited
resource and worth to be visible by users.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r-- | include/rdma/ib_verbs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 92633c15125b..85021451eee0 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -1505,6 +1505,10 @@ struct ib_ucontext { #endif struct ib_rdmacg_object cg_obj; + /* + * Implementation details of the RDMA core, don't use in drivers: + */ + struct rdma_restrack_entry res; }; struct ib_uobject { |