aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_init.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c
index 021636dbeae6..21ffa7c0915f 100644
--- a/drivers/infiniband/hw/qib/qib_init.c
+++ b/drivers/infiniband/hw/qib/qib_init.c
@@ -183,6 +183,9 @@ struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt)
183 rcd->rcvegrbuf_chunks = (rcd->rcvegrcnt + 183 rcd->rcvegrbuf_chunks = (rcd->rcvegrcnt +
184 rcd->rcvegrbufs_perchunk - 1) / 184 rcd->rcvegrbufs_perchunk - 1) /
185 rcd->rcvegrbufs_perchunk; 185 rcd->rcvegrbufs_perchunk;
186 BUG_ON(!is_power_of_2(rcd->rcvegrbufs_perchunk));
187 rcd->rcvegrbufs_perchunk_shift =
188 ilog2(rcd->rcvegrbufs_perchunk);
186 } 189 }
187 return rcd; 190 return rcd;
188} 191}