diff options
author | Naresh Gottumukkala <bgottumukkala@emulex.com> | 2013-08-26 09:57:39 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-09-03 04:17:48 (GMT) |
commit | 7c33880c3cb2cda816d4d64852c6a81018b9bc1f (patch) | |
tree | 517ab6a470642f8c07f59a7eb734c58cecf80c10 /drivers/infiniband/hw/ocrdma/ocrdma_main.c | |
parent | 43a6b4025c79ded5b44e58ba0db97c29dd38d718 (diff) | |
download | linux-fsl-qoriq-7c33880c3cb2cda816d4d64852c6a81018b9bc1f.tar.xz |
RDMA/ocrdma: Add support for fast register work requests (FRWR)
Also get the max_srq value from query_config mailbox response.
Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_main.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c index ded416f..4eeea56 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c @@ -329,6 +329,10 @@ static int ocrdma_register_device(struct ocrdma_dev *dev) dev->ibdev.dereg_mr = ocrdma_dereg_mr; dev->ibdev.reg_user_mr = ocrdma_reg_user_mr; + dev->ibdev.alloc_fast_reg_mr = ocrdma_alloc_frmr; + dev->ibdev.alloc_fast_reg_page_list = ocrdma_alloc_frmr_page_list; + dev->ibdev.free_fast_reg_page_list = ocrdma_free_frmr_page_list; + /* mandatory to support user space verbs consumer. */ dev->ibdev.alloc_ucontext = ocrdma_alloc_ucontext; dev->ibdev.dealloc_ucontext = ocrdma_dealloc_ucontext; |