RDMA/ocrdma: report asic-id in query device
authorMitesh Ahuja <mitesh.ahuja@emulex.com>
Wed, 2 Jul 2014 06:06:06 +0000 (11:36 +0530)
committerRoland Dreier <roland@purestorage.com>
Wed, 13 Aug 2014 05:07:47 +0000 (22:07 -0700)
Ocrdma does not report hw_ver when query_device is issued.  This patch
adds a meaningful value to this field.

Signed-off-by: Devesh Sharma <devesh.sharma@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 90152de..acb434d 100644 (file)
@@ -73,7 +73,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr)
        attr->page_size_cap = 0xffff000;
        attr->vendor_id = dev->nic_info.pdev->vendor;
        attr->vendor_part_id = dev->nic_info.pdev->device;
-       attr->hw_ver = 0;
+       attr->hw_ver = dev->asic_id;
        attr->max_qp = dev->attr.max_qp;
        attr->max_ah = OCRDMA_MAX_AH;
        attr->max_qp_wr = dev->attr.max_wqe;