RDMA/hns: Bugfix for creating qp attached to srq
authorLijun Ou <oulijun@huawei.com>
Fri, 9 Aug 2019 09:40:59 +0000 (17:40 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Aug 2019 16:32:36 +0000 (12:32 -0400)
commit76827087bb3f82f3cc18871633e06a4df36a5ed9
treeb1cbb0e2a7a5311b707f8e4d340b2c79e12f7e47
parent0e1aa6f0959e053651102c69cde9d6c42fea2a91
RDMA/hns: Bugfix for creating qp attached to srq

When create a qp and attached to srq, rq will no longer be used
and the members of rq will be set zero. As a result, the wrid
of rq will not be allocated and used.

Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Link: https://lore.kernel.org/r/1565343666-73193-3-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_qp.c