mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
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>
This commit is contained in:
parent
52addcf9d6
commit
d6a488f21c
@ -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_sge = dev->attr.max_srq_sge;
|
||||||
attr->max_srq_wr = dev->attr.max_rqe;
|
attr->max_srq_wr = dev->attr.max_rqe;
|
||||||
attr->local_ca_ack_delay = dev->attr.local_ca_ack_delay;
|
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;
|
attr->max_pkeys = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user