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>
This commit is contained in:
committed by
Roland Dreier
parent
057ae62fac
commit
7c3edd3ff3
@@ -137,7 +137,7 @@ static int alloc_qpn(struct qib_devdata *dd, struct qib_qpn_table *qpt,
|
|||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
qpn = qpt->last + 1;
|
qpn = qpt->last + 2;
|
||||||
if (qpn >= QPN_MAX)
|
if (qpn >= QPN_MAX)
|
||||||
qpn = 2;
|
qpn = 2;
|
||||||
if (qpt->mask && ((qpn & qpt->mask) >> 1) >= dd->n_krcv_queues)
|
if (qpt->mask && ((qpn & qpt->mask) >> 1) >= dd->n_krcv_queues)
|
||||||
|
Reference in New Issue
Block a user