Process of wqe is hard to understand and maintain in hns, this series refactor wqe related code, especially in hns_roce_v2_post_send(). Previous discussion could be found at: https://patchwork.kernel.org/cover/11415395/ Changes since v1: - Fix comments from Leon about the inplementation of to_hr_opcode() in patch 3/5. - Patch 4/5 couldn't be applied. Just do a rebase. Xi Wang (5): RDMA/hns: Rename wqe buffer related functions RDMA/hns: Optimize wqe buffer filling process for post send RDMA/hns: Optimize the wr opcode conversion from ib to hns RDMA/hns: Optimize base address table config flow for qp buffer RDMA/hns: Optimize wqe buffer set flow for post send drivers/infiniband/hw/hns/hns_roce_device.h | 10 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 16 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 9 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 588 ++++++++++++++-------------- drivers/infiniband/hw/hns/hns_roce_qp.c | 48 +-- 5 files changed, 319 insertions(+), 352 deletions(-) -- 2.8.1