diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_srq.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_srq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_srq.c b/drivers/infiniband/hw/mthca/mthca_srq.c index 34d2c4768962..10684da33d58 100644 --- a/drivers/infiniband/hw/mthca/mthca_srq.c +++ b/drivers/infiniband/hw/mthca/mthca_srq.c | |||
@@ -120,7 +120,7 @@ static void mthca_arbel_init_srq_context(struct mthca_dev *dev, | |||
120 | 120 | ||
121 | memset(context, 0, sizeof *context); | 121 | memset(context, 0, sizeof *context); |
122 | 122 | ||
123 | logsize = long_log2(srq->max); | 123 | logsize = ilog2(srq->max); |
124 | context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); | 124 | context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); |
125 | context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); | 125 | context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); |
126 | context->db_index = cpu_to_be32(srq->db_index); | 126 | context->db_index = cpu_to_be32(srq->db_index); |
@@ -213,7 +213,7 @@ int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd, | |||
213 | if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) | 213 | if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) |
214 | return -EINVAL; | 214 | return -EINVAL; |
215 | 215 | ||
216 | srq->wqe_shift = long_log2(ds); | 216 | srq->wqe_shift = ilog2(ds); |
217 | 217 | ||
218 | srq->srqn = mthca_alloc(&dev->srq_table.alloc); | 218 | srq->srqn = mthca_alloc(&dev->srq_table.alloc); |
219 | if (srq->srqn == -1) | 219 | if (srq->srqn == -1) |