@@ -1621,7 +1621,7 @@ int ibv_cmd_post_srq_recv(struct ibv_srq *srq, struct ibv_recv_wr *wr,
int ibv_cmd_create_ah(struct ibv_pd *pd, struct ibv_ah *ah,
struct ibv_ah_attr *attr,
- struct ibv_create_ah_resp *resp,
+ struct ib_uverbs_create_ah_resp *resp,
size_t resp_size)
{
struct ibv_create_ah cmd;
@@ -1646,7 +1646,7 @@ int ibv_cmd_create_ah(struct ibv_pd *pd, struct ibv_ah *ah,
(void) VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
- ah->handle = resp->handle;
+ ah->handle = resp->ah_handle;
ah->context = pd->context;
return 0;
@@ -451,7 +451,7 @@ int ibv_cmd_post_srq_recv(struct ibv_srq *srq, struct ibv_recv_wr *wr,
struct ibv_recv_wr **bad_wr);
int ibv_cmd_create_ah(struct ibv_pd *pd, struct ibv_ah *ah,
struct ibv_ah_attr *attr,
- struct ibv_create_ah_resp *resp,
+ struct ib_uverbs_create_ah_resp *resp,
size_t resp_size);
int ibv_cmd_destroy_ah(struct ibv_ah *ah);
int ibv_cmd_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid);
@@ -560,10 +560,6 @@ struct ibv_create_ah {
struct ib_uverbs_ah_attr attr;
};
-struct ibv_create_ah_resp {
- __u32 handle;
-};
-
struct ibv_destroy_ah {
__u32 command;
__u16 in_words;
@@ -1390,7 +1390,7 @@ struct ibv_ah *bnxt_re_create_ah(struct ibv_pd *ibvpd, struct ibv_ah_attr *attr)
{
struct bnxt_re_context *uctx;
struct bnxt_re_ah *ah;
- struct ibv_create_ah_resp resp;
+ struct ib_uverbs_create_ah_resp resp;
int status;
uctx = to_bnxt_re_context(ibvpd->context);
@@ -678,7 +678,7 @@ int hfi1_post_srq_recv(struct ibv_srq *ibsrq, struct ibv_recv_wr *wr,
struct ibv_ah *hfi1_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr)
{
struct ibv_ah *ah;
- struct ibv_create_ah_resp resp;
+ struct ib_uverbs_create_ah_resp resp;
ah = malloc(sizeof *ah);
if (ah == NULL)
@@ -654,7 +654,7 @@ int ipath_post_srq_recv(struct ibv_srq *ibsrq, struct ibv_recv_wr *wr,
struct ibv_ah *ipath_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr)
{
struct ibv_ah *ah;
- struct ibv_create_ah_resp resp;
+ struct ib_uverbs_create_ah_resp resp;
ah = malloc(sizeof *ah);
if (ah == NULL)
@@ -107,7 +107,7 @@ struct mlx5_alloc_ucontext_resp {
};
struct mlx5_create_ah_resp {
- struct ibv_create_ah_resp ibv_resp;
+ struct ib_uverbs_create_ah_resp ibv_resp;
__u32 response_length;
__u8 dmac[ETHERNET_LL_SIZE];
__u8 reserved[6];
@@ -2099,7 +2099,7 @@ struct ibv_ah *ocrdma_create_ah(struct ibv_pd *ibpd, struct ibv_ah_attr *attr)
int ahtbl_idx;
struct ocrdma_pd *pd;
struct ocrdma_ah *ah;
- struct ibv_create_ah_resp resp;
+ struct ib_uverbs_create_ah_resp resp;
pd = get_ocrdma_pd(ibpd);
ah = malloc(sizeof *ah);
@@ -783,7 +783,7 @@ static struct ibv_ah *rxe_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr)
struct rxe_ah *ah;
struct rxe_av *av;
union ibv_gid sgid;
- struct ibv_create_ah_resp resp;
+ struct ib_uverbs_create_ah_resp resp;
err = ibv_query_gid(pd->context, attr->port_num, attr->grh.sgid_index,
&sgid);