Skip to content

Commit 7179fe0

Browse files
kaleshap86rleon
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 <preethi.gurusiddalingeswaraswamy@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/20241211083931.968831-6-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 34db8ec commit 7179fe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)