Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10719
b: refs/heads/master
c: 7150bf8
h: refs/heads/master
i:
  10717: a9c58ac
  10715: 58701d2
  10711: 06dbbfe
  10703: 58a5efc
  10687: bd9089e
v: v3
  • Loading branch information
Jack Morgenstein authored and Roland Dreier committed Oct 18, 2005
1 parent 0706612 commit 164e42b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: ba8e9310244180bbc820e865d2e4378809b4a443
refs/heads/master: 7150bf8a98f14f1ba67e090ef2778004c746f465
7 changes: 6 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_mcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
}

for (i = 0; i < MTHCA_QP_PER_MGM; ++i)
if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) {
if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) {
mthca_dbg(dev, "QP %06x already a member of MGM\n",
ibqp->qp_num);
err = 0;
goto out;
} else if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) {
mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31));
break;
}
Expand Down

0 comments on commit 164e42b

Please sign in to comment.