RDMA/hns: Check if depth of qp is 0 before configure
authorLang Cheng <chenglang@huawei.com>
Thu, 12 Mar 2020 09:50:24 +0000 (17:50 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 18 Mar 2020 22:30:36 +0000 (19:30 -0300)
commit026ded373483c07983a6a30b70034ad0f3667a44
tree42e7113ade99fb568f136025157c35a8cfb5c3a8
parent4b34e23f4eaa236b918886fb90f468a6aa04997f
RDMA/hns: Check if depth of qp is 0 before configure

Depth of qp shouldn't be allowed to be set to zero, after ensuring that,
subsequent process can be simplified. And when qp is changed from reset to
reset, the capability of minimum qp depth was used to identify hardware of
hip06, it should be changed into a more readable form.

Link: https://lore.kernel.org/r/1584006624-11846-1-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c