There are two issues with calculation of extended sge, one is about page alignment and another is about the 0-length sges. Then, the path #3 refactor the code. Lang Cheng (1): RDMA/hns: Fix 0-length sge calculation error Weihang Li (1): RDMA/hns: Refactor process of setting extended sge Yangyang Li (1): RDMA/hns: Bugfix for calculation of extended sge drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 24 +++++------- drivers/infiniband/hw/hns/hns_roce_qp.c | 61 +++++++++++++++--------------- 2 files changed, 41 insertions(+), 44 deletions(-) -- 2.8.1