diff options
author | Mike Marciniszyn <mike.marciniszyn@qlogic.com> | 2011-01-10 20:42:22 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2011-01-10 20:42:22 -0500 |
commit | 7c3edd3ff3098093e594dbcbc9dbeeae09b1b4a0 (patch) | |
tree | 8cb8652beb2d2b1261949ed07c7a2b83ebf54067 /drivers/infiniband | |
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/infiniband')
-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, | |||
137 | goto bail; | 137 | goto bail; |
138 | } | 138 | } |
139 | 139 | ||
140 | qpn = qpt->last + 1; | 140 | qpn = qpt->last + 2; |
141 | if (qpn >= QPN_MAX) | 141 | if (qpn >= QPN_MAX) |
142 | qpn = 2; | 142 | qpn = 2; |
143 | if (qpt->mask && ((qpn & qpt->mask) >> 1) >= dd->n_krcv_queues) | 143 | if (qpt->mask && ((qpn & qpt->mask) >> 1) >= dd->n_krcv_queues) |