struct ibv_srq *srq, struct ibv_srq_init_attr *attr,
struct ibv_create_srq *cmd, size_t cmd_size,
struct ibv_create_srq_resp *resp, size_t resp_size);
-int ibv_cmd_create_srq_ex(struct verbs_context *context,
+int ibv_cmd_create_srq_ex(struct ibv_context *context,
struct verbs_srq *srq, struct ibv_srq_init_attr_ex *attr_ex,
struct ibv_create_xsrq *cmd, size_t cmd_size,
struct ibv_create_srq_resp *resp, size_t resp_size);
return 0;
}
-int ibv_cmd_create_srq_ex(struct verbs_context *context,
+int ibv_cmd_create_srq_ex(struct ibv_context *context,
struct verbs_srq *srq, struct ibv_srq_init_attr_ex *attr_ex,
struct ibv_create_xsrq *cmd, size_t cmd_size,
struct ibv_create_srq_resp *resp, size_t resp_size)
cmd->cq_handle = attr_ex->cq->handle;
}
- if (write(context->context.cmd_fd, cmd, cmd_size) != cmd_size)
+ if (write(context->cmd_fd, cmd, cmd_size) != cmd_size)
return errno;
VALGRIND_MAKE_MEM_DEFINED(resp, resp_size);
srq->srq.handle = resp->srq_handle;
- srq->srq.context = &context->context;
+ srq->srq.context = context;
srq->srq.srq_context = attr_ex->srq_context;
srq->srq.pd = attr_ex->pd;
srq->srq.events_completed = 0;