RDMA/ocrdma: Report correct value of max_fast_reg_page_list_len
authorDevesh Sharma <devesh.sharma@emulex.com>
Mon, 9 Jun 2014 05:22:37 +0000 (10:52 +0530)
committerRoland Dreier <roland@purestorage.com>
Fri, 19 Sep 2014 16:52:33 +0000 (09:52 -0700)
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>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c

index acb434d169036e0781eef89a10d6c72c32936554..4527311171c5da95b4f12d9f35406e40398b3e88 100644 (file)
@@ -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;
 }