|
@@ -511,7 +511,7 @@ static int ehca_create_aqp1(struct ehca_shca *shca, u32 port)
|
|
|
}
|
|
|
sport->ibcq_aqp1 = ibcq;
|
|
|
|
|
|
- if (sport->ibqp_aqp1) {
|
|
|
+ if (sport->ibqp_sqp[IB_QPT_GSI]) {
|
|
|
ehca_err(&shca->ib_device, "AQP1 QP is already created.");
|
|
|
ret = -EPERM;
|
|
|
goto create_aqp1;
|
|
@@ -537,7 +537,7 @@ static int ehca_create_aqp1(struct ehca_shca *shca, u32 port)
|
|
|
ret = PTR_ERR(ibqp);
|
|
|
goto create_aqp1;
|
|
|
}
|
|
|
- sport->ibqp_aqp1 = ibqp;
|
|
|
+ sport->ibqp_sqp[IB_QPT_GSI] = ibqp;
|
|
|
|
|
|
return 0;
|
|
|
|
|
@@ -550,7 +550,7 @@ static int ehca_destroy_aqp1(struct ehca_sport *sport)
|
|
|
{
|
|
|
int ret;
|
|
|
|
|
|
- ret = ib_destroy_qp(sport->ibqp_aqp1);
|
|
|
+ ret = ib_destroy_qp(sport->ibqp_sqp[IB_QPT_GSI]);
|
|
|
if (ret) {
|
|
|
ehca_gen_err("Cannot destroy AQP1 QP. ret=%i", ret);
|
|
|
return ret;
|