]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/uverbs: Expose device memory capabilities to user
authorAriel Levkovich <lariel@mellanox.com>
Thu, 5 Apr 2018 15:53:22 +0000 (18:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 17:16:39 +0000 (11:16 -0600)
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>
include/uapi/rdma/ib_user_verbs.h

index df5d339952fe5d9d7599af9195979f9ba2be162e..9be07394fdbe507c8a9bca237a5cda8519fb11a9 100644 (file)
@@ -268,6 +268,7 @@ struct ib_uverbs_ex_query_device_resp {
        __u32 raw_packet_caps;
        struct ib_uverbs_tm_caps tm_caps;
        struct ib_uverbs_cq_moderation_caps cq_moderation_caps;
+       __aligned_u64 max_dm_size;
 };
 
 struct ib_uverbs_query_port {