]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb6d29badd174a7c096eda391fa6d51e602aab85
treeaab04f5a90307dbe2b65ef3531027f5c1433f1c4
parentdb0c052710bfd62024fded2a46f4fea7c6276047
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