RDMA/hns: Clear remaining unused sges when post_recv
authorXi Wang <wangxi11@huawei.com>
Sat, 30 Jan 2021 08:58:08 +0000 (16:58 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 8 Feb 2021 23:37:35 +0000 (19:37 -0400)
commit6b981e2bd9251f4f4d0fe32b1eeb29b0d88813a5
treef341817924453a2435ae0280e4c762079acb70c8
parent9ae2a37e6ae650d7d81f4afede9d879937cab5db
RDMA/hns: Clear remaining unused sges when post_recv

The HIP09 requires the driver to clear the unused data segments in wqe
buffer to make the hns ROCEE stop reading the remaining invalid sges for
RQ.

Link: https://lore.kernel.org/r/1611997090-48820-11-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c