projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ac0c7c
)
RDMA/ocrdma: report asic-id in query device
author
Mitesh Ahuja
<
[email protected]
>
Wed, 2 Jul 2014 06:06:06 +0000
(11:36 +0530)
committer
Roland Dreier
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Mitesh Ahuja <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index 90152dec644703198f232a0dc08891482a557b8e..acb434d169036e0781eef89a10d6c72c32936554 100644
(file)
--- 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)
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;