summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hns/hns_roce_cmd.h
diff options
context:
space:
mode:
authorWei Hu (Xavier) <xavier.huwei@huawei.com>2016-11-29 23:10:25 +0000
committerDoug Ledford <dledford@redhat.com>2016-12-03 14:20:42 -0500
commitd838c481e025db374171e16d5cc463b85cffec9f (patch)
tree821fe6dafe52c1e4789c6123b6ce7956bc78f1b6 /drivers/infiniband/hw/hns/hns_roce_cmd.h
parente84e40be8e7bc29599da7056b340490d25ff87b5 (diff)
IB/hns: Fix the bug when destroy qp
If send queue is still working when qp is in reset state by modify qp in destroy qp function, hardware will hold on and don't work in hip06 SoC. In current codes, RoCE driver check hardware pointer of sending and hardware pointer of processing to ensure that hardware has processed all the dbs of this qp. But while the environment of wire becomes not good, The checking time maybe too long. In order to solve this problem, RoCE driver created a workqueue at probe function. If there is a timeout when checking the status of qp, driver initialize work entry and push it into the workqueue, Work function will finish checking and release the related resources later. Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Dongdong Huang(Donald) <hdd.huang@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_cmd.h')
0 files changed, 0 insertions, 0 deletions