diff options
author | Ariel Levkovich <lariel@mellanox.com> | 2018-04-05 11:53:22 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-04-05 13:16:39 -0400 |
commit | d41c1208955394198398f8a2ab8e0e25ad592e2b (patch) | |
tree | 3daafb2abc989e8bb4dfceb1a3197dd33c9ed501 | |
parent | 09c4854fde84421726a90249b4c20df2492f425f (diff) |
IB/uverbs: Expose device memory capabilities to user
Adding a new capability field under ib_uverbs_ex_query_device_resp -
max_dm_size - which reflects the maximum amount of device memory
that is available for allocation on a device in bytes.
Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index df5d339952fe..9be07394fdbe 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
@@ -268,6 +268,7 @@ struct ib_uverbs_ex_query_device_resp { | |||
268 | __u32 raw_packet_caps; | 268 | __u32 raw_packet_caps; |
269 | struct ib_uverbs_tm_caps tm_caps; | 269 | struct ib_uverbs_tm_caps tm_caps; |
270 | struct ib_uverbs_cq_moderation_caps cq_moderation_caps; | 270 | struct ib_uverbs_cq_moderation_caps cq_moderation_caps; |
271 | __aligned_u64 max_dm_size; | ||
271 | }; | 272 | }; |
272 | 273 | ||
273 | struct ib_uverbs_query_port { | 274 | struct ib_uverbs_query_port { |