diff options
author | Chengchang Tang <tangchengchang@huawei.com> | 2022-11-26 13:29:07 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-12-08 02:51:04 +0300 |
commit | bc34c04f7b97c3794dec5a6d6d27ffd5f0e4f5c8 (patch) | |
tree | 430644b7b763fff30c9aad0b93eb3b8a259e137b /drivers/infiniband/hw/qib/qib_verbs.c | |
parent | 487d65090a3dce1ae54946aded55d0f8ac87cbab (diff) | |
download | linux-bc34c04f7b97c3794dec5a6d6d27ffd5f0e4f5c8.tar.xz |
RDMA/hns: Fix AH attr queried by query_qp
The queried AH attr is invalid. This patch fix it.
This problem is found by rdma-core test test_mr_rereg_pd
ERROR: test_mr_rereg_pd (tests.test_mr.MRTest)
Test that cover rereg MR's PD with this flow:
----------------------------------------------------------------------
Traceback (most recent call last):
File "./tests/test_mr.py", line 157, in test_mr_rereg_pd
self.restate_qps()
File "./tests/test_mr.py", line 113, in restate_qps
self.server.qp.to_rts(self.server_qp_attr)
File "qp.pyx", line 1137, in pyverbs.qp.QP.to_rts
File "qp.pyx", line 1123, in pyverbs.qp.QP.to_rtr
pyverbs.pyverbs_error.PyverbsRDMAError: Failed to modify QP state to RTR.
Errno: 22, Invalid argument
Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/20221126102911.2921820-3-xuhaoyue1@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_verbs.c')
0 files changed, 0 insertions, 0 deletions