]> 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)
commit8c4b3f373b1d67fe91a9192003c89fc152491a81
tree43ddd6a2777d93fbf3eda1f29f2d092267102ca4
parent2b7c6e41fada245588be7f30f4583f2fa2192ef3
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