RDMA/hns: Fix the wrong value of rnr_retry when querying qp
authorWenpeng Liang <liangwenpeng@huawei.com>
Sat, 19 Sep 2020 10:03:20 +0000 (18:03 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Sep 2020 18:56:27 +0000 (15:56 -0300)
commit99fcf82521d91468ee6115a3c253aa032dc63cbc
treebbd9736bf786285df8d79a692db38382b6c13a8e
parent768202a0825d447de785e87ff1ea1d3c86a71727
RDMA/hns: Fix the wrong value of rnr_retry when querying qp

The rnr_retry returned to the user is not correct, it should be got from
another fields in QPC.

Fixes: bfe860351e31 ("RDMA/hns: Fix cast from or to restricted __le32 for driver")
Link: https://lore.kernel.org/r/1600509802-44382-7-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c