lkml.org 
[lkml]   [2019]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.19 074/209] RDMA/hns: Submit bad wr when post send wr exception
    Date
    From: Lijun Ou <oulijun@huawei.com>

    [ Upstream commit c80e066100b5fed722c8da67c1bd2312e7bcf129 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
    index 7eb6e4bf8a090..ce44a90d2bd3e 100644
    --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
    +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
    @@ -121,6 +121,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;
    }
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-11-13 03:25    [W:4.353 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site