mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
09c4854fde
commit
d41c120895
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ struct ib_uverbs_ex_query_device_resp {
|
||||||
__u32 raw_packet_caps;
|
__u32 raw_packet_caps;
|
||||||
struct ib_uverbs_tm_caps tm_caps;
|
struct ib_uverbs_tm_caps tm_caps;
|
||||||
struct ib_uverbs_cq_moderation_caps cq_moderation_caps;
|
struct ib_uverbs_cq_moderation_caps cq_moderation_caps;
|
||||||
|
__aligned_u64 max_dm_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ib_uverbs_query_port {
|
struct ib_uverbs_query_port {
|
||||||
|
|
Loading…
Reference in a new issue