summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>2011-01-10 17:42:22 -0800
committerRoland Dreier <rolandd@cisco.com>2011-01-10 17:42:22 -0800
commit7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0 (patch)
tree8cb8652beb2d2b1261949ed07c7a2b83ebf54067 /drivers/infiniband
parent057ae62faceccb50b0c2387af60dbbbcd40aab84 (diff)
downloadop-kernel-dev-7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0.zip
op-kernel-dev-7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0.tar.gz
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')
-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)
OpenPOWER on IntegriCloud