]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hns: Fix the bug of polling cq failed for loopback Qps
authoroulijun <oulijun@huawei.com>
Sat, 10 Jun 2017 10:49:21 +0000 (18:49 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jul 2017 01:21:27 +0000 (21:21 -0400)
commitfadb489c8f88029aad86c9443d61e8649c9117e7
tree4a47d9d81101df35027b76b70300292b5943ee03
parent6ba2146125f81603875fdaba37e113683736e8d0
IB/hns: Fix the bug of polling cq failed for loopback Qps

In hip06 SoC, RoCE driver creates 8 reserved loopback QPs to
ensure zero wqe when free mr. However, if the enabled phy
port number is less than 6, it will fail in polling cqe with
8 reserved loopback QPs.

In order to solve this problem, the number of loopback Qps
will be adjusted based on the number of enabled phy port.

Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c