|
@@ -69,7 +69,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr)
|
|
|
memcpy(&attr->fw_ver, &dev->attr.fw_ver[0],
|
|
memcpy(&attr->fw_ver, &dev->attr.fw_ver[0],
|
|
|
min(sizeof(dev->attr.fw_ver), sizeof(attr->fw_ver)));
|
|
min(sizeof(dev->attr.fw_ver), sizeof(attr->fw_ver)));
|
|
|
ocrdma_get_guid(dev, (u8 *)&attr->sys_image_guid);
|
|
ocrdma_get_guid(dev, (u8 *)&attr->sys_image_guid);
|
|
|
- attr->max_mr_size = ~0ull;
|
|
|
|
|
|
|
+ attr->max_mr_size = dev->attr.max_mr_size;
|
|
|
attr->page_size_cap = 0xffff000;
|
|
attr->page_size_cap = 0xffff000;
|
|
|
attr->vendor_id = dev->nic_info.pdev->vendor;
|
|
attr->vendor_id = dev->nic_info.pdev->vendor;
|
|
|
attr->vendor_part_id = dev->nic_info.pdev->device;
|
|
attr->vendor_part_id = dev->nic_info.pdev->device;
|