@@ -1273,7 +1273,7 @@ int ibv_cmd_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
static void copy_modify_qp_fields(struct ibv_qp *qp, struct ibv_qp_attr *attr,
int attr_mask,
- struct ibv_modify_qp_common *cmd)
+ struct ib_uverbs_modify_qp *cmd)
{
cmd->qp_handle = qp->handle;
cmd->attr_mask = attr_mask;
@@ -337,46 +337,17 @@ struct ibv_query_qp {
__u64 driver_data[0];
};
-struct ibv_modify_qp_common {
- struct ib_uverbs_qp_dest dest;
- struct ib_uverbs_qp_dest alt_dest;
- __u32 qp_handle;
- __u32 attr_mask;
- __u32 qkey;
- __u32 rq_psn;
- __u32 sq_psn;
- __u32 dest_qp_num;
- __u32 qp_access_flags;
- __u16 pkey_index;
- __u16 alt_pkey_index;
- __u8 qp_state;
- __u8 cur_qp_state;
- __u8 path_mtu;
- __u8 path_mig_state;
- __u8 en_sqd_async_notify;
- __u8 max_rd_atomic;
- __u8 max_dest_rd_atomic;
- __u8 min_rnr_timer;
- __u8 port_num;
- __u8 timeout;
- __u8 retry_cnt;
- __u8 rnr_retry;
- __u8 alt_port_num;
- __u8 alt_timeout;
- __u8 reserved[2];
-};
-
struct ibv_modify_qp {
__u32 command;
__u16 in_words;
__u16 out_words;
- struct ibv_modify_qp_common base;
+ struct ib_uverbs_modify_qp base;
__u64 driver_data[0];
};
struct ibv_modify_qp_ex {
struct ex_hdr hdr;
- struct ibv_modify_qp_common base;
+ struct ib_uverbs_modify_qp base;
__u32 rate_limit;
__u32 reserved;
};