Skip to content

Commit 7179fe0

Browse files
Kalesh APrleon
authored andcommitted
RDMA/bnxt_re: Fix reporting hw_ver in query_device
Driver currently populates subsystem_device id in the "hw_ver" field of ib_attr structure in query_device. Updated to populate PCI revision ID. Fixes: 1ac5a40 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Reviewed-by: Preethi G <[email protected]> Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 34db8ec commit 7179fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int bnxt_re_query_device(struct ib_device *ibdev,
199199

200200
ib_attr->vendor_id = rdev->en_dev->pdev->vendor;
201201
ib_attr->vendor_part_id = rdev->en_dev->pdev->device;
202-
ib_attr->hw_ver = rdev->en_dev->pdev->subsystem_device;
202+
ib_attr->hw_ver = rdev->en_dev->pdev->revision;
203203
ib_attr->max_qp = dev_attr->max_qp;
204204
ib_attr->max_qp_wr = dev_attr->max_qp_wqes;
205205
ib_attr->device_cap_flags =

0 commit comments

Comments
 (0)