summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>2011-01-11 01:42:22 (GMT)
committerRoland Dreier <rolandd@cisco.com>2011-01-11 01:42:22 (GMT)
commit7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0 (patch)
tree8cb8652beb2d2b1261949ed07c7a2b83ebf54067 /drivers/infiniband/hw
parent057ae62faceccb50b0c2387af60dbbbcd40aab84 (diff)
downloadlinux-fsl-qoriq-7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0.tar.xz
IB/qib: Change QPN increment
Changing from +1 to +2 allows for better QP distribution across receive contexts. Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/qib/qib_qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_qp.c b/drivers/infiniband/hw/qib/qib_qp.c
index eaab008..e16751f 100644
--- a/drivers/infiniband/hw/qib/qib_qp.c
+++ b/drivers/infiniband/hw/qib/qib_qp.c
@@ -137,7 +137,7 @@ static int alloc_qpn(struct qib_devdata *dd, struct qib_qpn_table *qpt,
goto bail;
}
- qpn = qpt->last + 1;
+ qpn = qpt->last + 2;
if (qpn >= QPN_MAX)
qpn = 2;
if (qpt->mask && ((qpn & qpt->mask) >> 1) >= dd->n_krcv_queues)