diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2006-02-02 13:43:45 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:10 -0500 |
commit | d36f34aadf184d8cc4c240de2b6319ccea8334bb (patch) | |
tree | 20b7a77e03f3c75c9043a50ddd720a31048efa99 /include/rdma/ib_fmr_pool.h | |
parent | 6dfc3901b04d1b79fa982d6de6d5af3b50c6cea8 (diff) |
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 'include/rdma/ib_fmr_pool.h')
-rw-r--r-- | include/rdma/ib_fmr_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_fmr_pool.h b/include/rdma/ib_fmr_pool.h index 86b7e93f198b..4ace54cd0cce 100644 --- a/include/rdma/ib_fmr_pool.h +++ b/include/rdma/ib_fmr_pool.h | |||
@@ -43,6 +43,7 @@ struct ib_fmr_pool; | |||
43 | /** | 43 | /** |
44 | * struct ib_fmr_pool_param - Parameters for creating FMR pool | 44 | * struct ib_fmr_pool_param - Parameters for creating FMR pool |
45 | * @max_pages_per_fmr:Maximum number of pages per map request. | 45 | * @max_pages_per_fmr:Maximum number of pages per map request. |
46 | * @page_shift: Log2 of sizeof "pages" mapped by this fmr | ||
46 | * @access:Access flags for FMRs in pool. | 47 | * @access:Access flags for FMRs in pool. |
47 | * @pool_size:Number of FMRs to allocate for pool. | 48 | * @pool_size:Number of FMRs to allocate for pool. |
48 | * @dirty_watermark:Flush is triggered when @dirty_watermark dirty | 49 | * @dirty_watermark:Flush is triggered when @dirty_watermark dirty |
@@ -55,6 +56,7 @@ struct ib_fmr_pool; | |||
55 | */ | 56 | */ |
56 | struct ib_fmr_pool_param { | 57 | struct ib_fmr_pool_param { |
57 | int max_pages_per_fmr; | 58 | int max_pages_per_fmr; |
59 | int page_shift; | ||
58 | enum ib_access_flags access; | 60 | enum ib_access_flags access; |
59 | int pool_size; | 61 | int pool_size; |
60 | int dirty_watermark; | 62 | int dirty_watermark; |