diff options
author | Mike Marciniszyn | 2011-01-10 17:42:22 -0800 |
---|---|---|
committer | Roland Dreier | 2011-01-10 17:42:22 -0800 |
commit | 7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0 (patch) | |
tree | 8cb8652beb2d2b1261949ed07c7a2b83ebf54067 /drivers | |
parent | 057ae62faceccb50b0c2387af60dbbbcd40aab84 (diff) |
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')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_qp.c | 2 |
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 eaab008466ca..e16751f8639e 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) |