tree 00ee9237785dd5c552dfc7d20460d8d6e3bc940e
parent 8cf2daf3feae982db9804df3d4b8ec20fa7d6d41
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:15 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:15 -0700

[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]>

 infiniband/hw/mthca/mthca_profile.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

Index: drivers/infiniband/hw/mthca/mthca_profile.c
===================================================================
--- 
3f6047bf50f7d37c43b698c4f87cc0caa181ea23/drivers/infiniband/hw/mthca/mthca_profile.c
  (mode:100644 sha1:7881a8a919ca3e8914701189fc6dad16c5dbfc59)
+++ 
00ee9237785dd5c552dfc7d20460d8d6e3bc940e/drivers/infiniband/hw/mthca/mthca_profile.c
  (mode:100644 sha1:9ffe76e23a9e2a1a12093514bbdfc76b36871586)
@@ -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

Reply via email to