IB/hns: Update the rq head when modify qp state
authorLijun Ou <oulijun@huawei.com>
Tue, 20 Sep 2016 16:07:09 +0000 (17:07 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commit1fad5fab782c18a90865f61bff1bde3a0dba1678
treef482952a2b4859cc03acd3e221c25e1cd9bfc139
parent24f0c9c0ff0955c5849dfb40403a21c8c11b9d2a
IB/hns: Update the rq head when modify qp state

The rq head in qpc was zero will miss the rq wqes which
have be sent, so here we should take the real value.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c