IB/core: Add flags for on demand paging support
[cascardo/linux.git] / include / uapi / rdma / ib_user_verbs.h
index e8a9607..4275b96 100644 (file)
@@ -202,15 +202,30 @@ struct ib_uverbs_query_device_resp {
        __u8  reserved[4];
 };
 
+enum {
+       IB_USER_VERBS_EX_QUERY_DEVICE_ODP =             1ULL << 0,
+};
+
 struct ib_uverbs_ex_query_device {
        __u32 comp_mask;
        __u32 reserved;
 };
 
+struct ib_uverbs_odp_caps {
+       __u64 general_caps;
+       struct {
+               __u32 rc_odp_caps;
+               __u32 uc_odp_caps;
+               __u32 ud_odp_caps;
+       } per_transport_caps;
+       __u32 reserved;
+};
+
 struct ib_uverbs_ex_query_device_resp {
        struct ib_uverbs_query_device_resp base;
        __u32 comp_mask;
        __u32 reserved;
+       struct ib_uverbs_odp_caps odp_caps;
 };
 
 struct ib_uverbs_query_port {