aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2018-09-30 17:00:29 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-10-03 16:21:17 -0600
commitc80e066100b5fed722c8da67c1bd2312e7bcf129 (patch)
tree3ae9b01f37b06f1b011ed848056bce6315a30f78 /drivers/infiniband/hw/hns
parentRDMA/hns: Bugfix for reserved qp number (diff)
downloadlinux-dev-c80e066100b5fed722c8da67c1bd2312e7bcf129.tar.xz
linux-dev-c80e066100b5fed722c8da67c1bd2312e7bcf129.zip
RDMA/hns: Submit bad wr when post send wr exception
When user issues a RDMA read and enables sq inline, it needs to report a bad wr to user. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index e4d98a1f7e82..b543720c775e 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -133,6 +133,7 @@ static int set_rwqe_data_seg(struct ib_qp *ibqp, const struct ib_send_wr *wr,
}
if (wr->opcode == IB_WR_RDMA_READ) {
+ *bad_wr = wr;
dev_err(hr_dev->dev, "Not support inline data!\n");
return -EINVAL;
}