OSDN Git Service

RDMA/hns: Fixup qp release bug
authorchenglang <chenglang@huawei.com>
Mon, 24 Jun 2019 11:47:46 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 15:02:00 +0000 (12:02 -0300)
commit21b97f538765996ac76b3a99adf371d0da5450f9
tree9232c86b5ea07a1bff6067421374c24def8e1b4d
parent6fafe560ee4ddb79b1c9d6c168d4f2e7eef2a037
RDMA/hns: Fixup qp release bug

Hip06 reserve 12 qps, Hip08 reserve 8 qps. When the QP is released, the
chip model is not judged, and the Hip08 cannot release the qpn 8~12

Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_qp.c