Refactor the process of polling CQ and several control paths in the hns driver. Changes since v1: - Avoid wrapping a function in another one. - Make a rebase. - Link: https://patchwork.kernel.org/project/linux-rdma/cover/1615972183-42510-1-git-send-email-liweihang@xxxxxxxxxx/ P.S. This version is made based on "RDMA/hns: Support to select congestion control algorithm" at https://patchwork.kernel.org/project/linux-rdma/cover/1616679236-7795-1-git-send-email-liweihang@xxxxxxxxxx/ Sorry for just finding out there's merge conflict between these two series, I will send a new version ASAP if something needs to be updated. Weihang Li (1): RDMA/hns: Refactor hns_roce_v2_poll_one() Xi Wang (3): RDMA/hns: Refactor reset state checking flow RDMA/hns: Reorganize process of setting HEM RDMA/hns: Simplify command fields for HEM base address configuration Yixing Liu (1): RDMA/hns: Reorganize hns_roce_create_cq() drivers/infiniband/hw/hns/hns_roce_cmd.c | 35 +- drivers/infiniband/hw/hns/hns_roce_cq.c | 86 ++- drivers/infiniband/hw/hns/hns_roce_device.h | 11 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 2 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 971 +++++++++++++++------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 116 ++-- 6 files changed, 625 insertions(+), 596 deletions(-) -- 2.8.1