diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2015-08-07 10:51:25 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:08:48 -0400 |
commit | d9fe6dd7afaff529124dd7f49c2da89ef789a56f (patch) | |
tree | 83de641881b8173977c94bab35eb716461221321 /drivers/staging/rdma/hfi1/verbs.h | |
parent | qib: Support ib_alloc_mr verb (diff) | |
download | linux-dev-d9fe6dd7afaff529124dd7f49c2da89ef789a56f.tar.xz linux-dev-d9fe6dd7afaff529124dd7f49c2da89ef789a56f.zip |
IB/hfi1: Support ib_alloc_mr verb
Ported from upstream qib commit
68c02e232b8a ("qib: Support ib_alloc_mr verb")
Tested-by: Jubin John <jubin.john@intel.com>
Reviewed-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/staging/rdma/hfi1/verbs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/verbs.h b/drivers/staging/rdma/hfi1/verbs.h index 812536194190..ed903a93baf7 100644 --- a/drivers/staging/rdma/hfi1/verbs.h +++ b/drivers/staging/rdma/hfi1/verbs.h @@ -1016,7 +1016,9 @@ struct ib_mr *hfi1_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, int hfi1_dereg_mr(struct ib_mr *ibmr); -struct ib_mr *hfi1_alloc_fast_reg_mr(struct ib_pd *pd, int max_page_list_len); +struct ib_mr *hfi1_alloc_mr(struct ib_pd *pd, + enum ib_mr_type mr_type, + u32 max_entries); struct ib_fast_reg_page_list *hfi1_alloc_fast_reg_page_list( struct ib_device *ibdev, int page_list_len); |