Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56405
b: refs/heads/master
c: c55a0dd
h: refs/heads/master
i:
  56403: 5569448
v: v3
  • Loading branch information
Hoang-Nam Nguyen authored and Roland Dreier committed May 14, 2007
1 parent 503817d commit db6f8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92761cdaf215599a1bd81d383facb32adabfa620
refs/heads/master: c55a0ddd8ebdd657224449c2fbfcd427e054c8cc
5 changes: 3 additions & 2 deletions trunk/drivers/infiniband/hw/ehca/ehca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd,
goto create_qp_exit1;
}

my_qp->ib_qp.qp_num = my_qp->real_qp_num;

switch (init_attr->qp_type) {
case IB_QPT_RC:
if (isdaqp == 0) {
Expand Down Expand Up @@ -568,7 +570,7 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd,
parms.act_nr_recv_wqes = init_attr->cap.max_recv_wr;
parms.act_nr_send_sges = init_attr->cap.max_send_sge;
parms.act_nr_recv_sges = init_attr->cap.max_recv_sge;
my_qp->real_qp_num =
my_qp->ib_qp.qp_num =
(init_attr->qp_type == IB_QPT_SMI) ? 0 : 1;
}

Expand All @@ -595,7 +597,6 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd,
my_qp->ib_qp.recv_cq = init_attr->recv_cq;
my_qp->ib_qp.send_cq = init_attr->send_cq;

my_qp->ib_qp.qp_num = my_qp->real_qp_num;
my_qp->ib_qp.qp_type = init_attr->qp_type;

my_qp->qp_type = init_attr->qp_type;
Expand Down

0 comments on commit db6f8c2

Please sign in to comment.