]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit5802883d4b7c544012a1857660f78af41f6c183a
tree4a47d9d81101df35027b76b70300292b5943ee03
parent56012e1cada54460f9e456cd77276e765e06ce6c
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