diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2006-02-02 21:43:45 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 21:08:10 +0300 |
commit | d36f34aadf184d8cc4c240de2b6319ccea8334bb (patch) | |
tree | 20b7a77e03f3c75c9043a50ddd720a31048efa99 /drivers/infiniband/core | |
parent | 6dfc3901b04d1b79fa982d6de6d5af3b50c6cea8 (diff) | |
download | linux-d36f34aadf184d8cc4c240de2b6319ccea8334bb.tar.xz |
IB: Enable FMR pool user to set page size
This patch allows the consumer to set the page size of "pages" mapped
by the pool FMRs, which is a feature already existing in the base
verbs API. On the cosmetic side it changes ib_fmr_attr.page_size field
to be named page_shift.
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/fmr_pool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/core/fmr_pool.c b/drivers/infiniband/core/fmr_pool.c index d34a6f1c4f4c..838bf54458d2 100644 --- a/drivers/infiniband/core/fmr_pool.c +++ b/drivers/infiniband/core/fmr_pool.c @@ -278,9 +278,9 @@ struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd, { struct ib_pool_fmr *fmr; struct ib_fmr_attr attr = { - .max_pages = params->max_pages_per_fmr, - .max_maps = IB_FMR_MAX_REMAPS, - .page_size = PAGE_SHIFT + .max_pages = params->max_pages_per_fmr, + .max_maps = IB_FMR_MAX_REMAPS, + .page_shift = params->page_shift }; for (i = 0; i < params->pool_size; ++i) { |