projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
057ae62
)
IB/qib: Change QPN increment
author
Mike Marciniszyn
<mike.marciniszyn@qlogic.com>
Tue, 11 Jan 2011 01:42:22 +0000
(17:42 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Tue, 11 Jan 2011 01:42:22 +0000
(17:42 -0800)
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>
drivers/infiniband/hw/qib/qib_qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/qib/qib_qp.c
b/drivers/infiniband/hw/qib/qib_qp.c
index eaab008466cae28b4c57eea0c874b53d6510da99..e16751f8639e7c44cbb4edadb46b3a805a71c196 100644
(file)
--- 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)