RDMA/hns: Make the end of sge process more clear
authorYixian Liu <liuyixian@huawei.com>
Fri, 22 May 2020 13:02:59 +0000 (21:02 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 May 2020 17:20:46 +0000 (14:20 -0300)
commite1b43f07c0d4c82fd5591ae24d045fee2b00edf3
treeaab04f5a90307dbe2b65ef3531027f5c1433f1c4
parente4aaf4bad4651358a923ad756f8b0c9d447ea21f
RDMA/hns: Make the end of sge process more clear

Instead of i with the sge number of wr will make the comparision more
clear, that is, when the sge number in wr is small than the maximum
supported sge number in the queue, then a stop sge needed to be filled at
the end of sges in wr.

Link: https://lore.kernel.org/r/1590152579-32364-5-git-send-email-liweihang@huawei.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c