diff options
author | Mitesh Ahuja <mitesh.ahuja@emulex.com> | 2014-07-02 02:06:06 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-08-13 01:07:47 -0400 |
commit | 96c51abecc4379273fb751ff44eb57e4b243b5f0 (patch) | |
tree | 2b16b5e87f010418ad58fd538a23ba5db5dcd046 /drivers/infiniband | |
parent | 8ac0c7c7a13b16e7c49fea812819a7f807a202fe (diff) |
RDMA/ocrdma: report asic-id in query device
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>
Diffstat (limited to 'drivers/infiniband')
-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 90152dec6447..acb434d16903 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | |||
@@ -73,7 +73,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr) | |||
73 | attr->page_size_cap = 0xffff000; | 73 | attr->page_size_cap = 0xffff000; |
74 | attr->vendor_id = dev->nic_info.pdev->vendor; | 74 | attr->vendor_id = dev->nic_info.pdev->vendor; |
75 | attr->vendor_part_id = dev->nic_info.pdev->device; | 75 | attr->vendor_part_id = dev->nic_info.pdev->device; |
76 | attr->hw_ver = 0; | 76 | attr->hw_ver = dev->asic_id; |
77 | attr->max_qp = dev->attr.max_qp; | 77 | attr->max_qp = dev->attr.max_qp; |
78 | attr->max_ah = OCRDMA_MAX_AH; | 78 | attr->max_ah = OCRDMA_MAX_AH; |
79 | attr->max_qp_wr = dev->attr.max_wqe; | 79 | attr->max_qp_wr = dev->attr.max_wqe; |