]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix retry_cnt and rnr_cnt when querying QP
authorWenpeng Liang <liangwenpeng@huawei.com>
Thu, 26 Nov 2020 09:29:37 +0000 (17:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 14:57:32 +0000 (10:57 -0400)
commitb4c2f64ef412f73aa23bd74f9e90a36629a5c454
treed0a39547669c64488f8569c275a5b6cc0b089f71
parentf0c30e17af83ec1268a010d83c00fff4a1f8ba39
RDMA/hns: Fix retry_cnt and rnr_cnt when querying QP

The maximum number of retransmission should be returned when querying QP,
not the value of retransmission counter.

Fixes: 378c6d333b20 ("RDMA/hns: Fix the wrong value of rnr_retry when querying qp")
Fixes: bf25edb16eca ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/1606382977-21431-1-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