]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Reserve one sge in order to avoid local length error
authorLijun Ou <oulijun@huawei.com>
Fri, 8 May 2020 09:45:59 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:59 +0000 (20:54 -0300)
commit2354997ef3180336328ec8069899e6c4838f91c9
tree43ddd6a2777d93fbf3eda1f29f2d092267102ca4
parente50f77ca7b723623331caa9ea6933e566855a05e
RDMA/hns: Reserve one sge in order to avoid local length error

When rq/srq sge length is smaller than sq sge length, it will produce a
local length error and may cause the bus to hang. Therefore, for rq wqe
and srq wqe, one reserved sge pointing to a reserved mr is used to avoid
this error.

Link: https://lore.kernel.org/r/1588931159-56875-10-git-send-email-liweihang@huawei.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_qp.c
drivers/infiniband/hw/hns/hns_roce_srq.c