@@ -257,8 +257,8 @@ int ibv_cmd_query_device_ex(struct ibv_context *context,
if (resp->response_length >=
offsetof(struct ibv_query_device_resp_ex, cq_mod_caps) +
sizeof(resp->cq_mod_caps)) {
- attr->cq_mod_caps.max_cq_count = resp->cq_mod_caps.cq_count;
- attr->cq_mod_caps.max_cq_period = resp->cq_mod_caps.cq_period;
+ attr->cq_mod_caps.max_cq_count = resp->cq_mod_caps.max_cq_moderation_count;
+ attr->cq_mod_caps.max_cq_period = resp->cq_mod_caps.max_cq_moderation_period;
}
}
@@ -110,12 +110,6 @@ struct ibv_query_device_ex {
__u32 reserved;
};
-struct ibv_cq_moderation_caps_resp {
- __u16 cq_count;
- __u16 cq_period;
- __u32 reserved;
-};
-
struct ibv_query_device_resp_ex {
struct ib_uverbs_query_device_resp base;
__u32 comp_mask;
@@ -128,7 +122,7 @@ struct ibv_query_device_resp_ex {
__u32 max_wq_type_rq;
__u32 raw_packet_caps;
struct ib_uverbs_tm_caps tm_caps;
- struct ibv_cq_moderation_caps_resp cq_mod_caps;
+ struct ib_uverbs_cq_moderation_caps cq_mod_caps;
};
struct ibv_query_port {