]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Bugfix for filling the sge of srq
authorLijun Ou <oulijun@huawei.com>
Fri, 31 May 2019 10:28:03 +0000 (18:28 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Jun 2019 18:01:05 +0000 (15:01 -0300)
commite75caf0c25b5483c880eafc53ee0d513356177f3
tree8558937d597dbf3ad152d57ea4ef28c907831ad7
parent353490f92e2e18ba072a3019c7b9c23ca37c6644
RDMA/hns: Bugfix for filling the sge of srq

When user post recv a srq with multiple sges, the hardware will get the
last correct sge and count the sge numbers according to the specific
identifier with lkey. For example, when the driver fills the sges with
every wr less than the max sge that the user configured when creating srq,
the hardware will stop getting the sge according to the specific lkey in
the sge. However, it will always end with the first sge in the current
post srq recv interface implementation.

Fixes: ac1d3186ba48 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c