diff options
author | Devesh Sharma <devesh.sharma@emulex.com> | 2014-06-09 07:22:37 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-09-19 18:52:33 +0200 |
commit | d6a488f21c0f3c44bfbb2339a75159ee55aa2b6f (patch) | |
tree | 2b87dcb5e80b8a64f95e8c878e9acf4e88bdd219 | |
parent | Linux 3.17-rc2 (diff) | |
download | linux-d6a488f21c0f3c44bfbb2339a75159ee55aa2b6f.tar.xz linux-d6a488f21c0f3c44bfbb2339a75159ee55aa2b6f.zip |
RDMA/ocrdma: Report correct value of max_fast_reg_page_list_len
Fix ocrdma_query_device() to report correct value of max_fast_reg_page_list_len.
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index acb434d16903..4527311171c5 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -101,7 +101,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr) attr->max_srq_sge = dev->attr.max_srq_sge; attr->max_srq_wr = dev->attr.max_rqe; attr->local_ca_ack_delay = dev->attr.local_ca_ack_delay; - attr->max_fast_reg_page_list_len = 0; + attr->max_fast_reg_page_list_len = dev->attr.max_pages_per_frmr; attr->max_pkeys = 1; return 0; } |