IB/hns: Return bad wr while post send failed
authorLijun Ou <oulijun@huawei.com>
Tue, 20 Sep 2016 16:07:04 +0000 (17:07 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commit07182fa77b3a64962aca12e8c0006646316bd26d
treedcc22f0234ed611ffacba0eecc3e0fda00ef2ab8
parent1cd11064da4b0bca992ca0f9594adbf53df25879
IB/hns: Return bad wr while post send failed

While post failed, hns roce should return the wr failed to user.
We omitted this while qp type is wrong and fixed it.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Dongdong Huang(Donald) <hdd.huang@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