tree ff3575aac2a414f0e1914f3d3945f1075da0c6c8
parent f3ef13959fe19d128c1602c75ee0a5db14a82486
author Roland Dreier <[EMAIL PROTECTED]> Tue Apr 12 08:26:42 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:42 2005
[PATCH] IB/mthca: fix calculation of RDB shift
Fix calculation of rdb_shift by using original number of QPs, not
their slot in profile[] (which will be rearranged when we sort it).
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
mthca_profile.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: drivers/infiniband/hw/mthca/mthca_profile.c
===================================================================
---
011e066a8e2e8a6b1ed30edf5484482245e95548/drivers/infiniband/hw/mthca/mthca_profile.c
(mode:100644 sha1:1932e275816758f834484da11ef3aac81d8412e6)
+++
ff3575aac2a414f0e1914f3d3945f1075da0c6c8/drivers/infiniband/hw/mthca/mthca_profile.c
(mode:100644 sha1:ad0a2df724f6a5c1091504a83931fc8d578921f3)
@@ -208,8 +208,7 @@
break;
case MTHCA_RES_RDB:
for (dev->qp_table.rdb_shift = 0;
- profile[MTHCA_RES_QP].num <<
dev->qp_table.rdb_shift <
- profile[i].num;
+ request->num_qp << dev->qp_table.rdb_shift <
profile[i].num;
++dev->qp_table.rdb_shift)
; /* nothing */
dev->qp_table.rdb_base = (u32) profile[i].start;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html