Add support for 0 hop addressing, which means hip08 supports multi-hops addressing range from 0 to 3. Unforunately, there are still some dev_*() in in the initialization process of the hns driver in this series that can't be replaced by ibdev_*() currently, but they will be modified in subsequent patches. Xi Wang (6): RDMA/hns: Add support for addressing when hopnum is 0 RDMA/hns: Optimize hns buffer allocation flow RDMA/hns: Optimize 0 hop addressing for EQE buffer RDMA/hns: Support 0 hop addressing for WQE buffer RDMA/hns: Support 0 hop addressing for SRQ buffer RDMA/hns: Support 0 hop addressing for CQE buffer drivers/infiniband/hw/hns/hns_roce_alloc.c | 103 +++---- drivers/infiniband/hw/hns/hns_roce_cq.c | 351 +++++++--------------- drivers/infiniband/hw/hns/hns_roce_device.h | 100 ++++--- drivers/infiniband/hw/hns/hns_roce_hem.c | 9 +- drivers/infiniband/hw/hns/hns_roce_hem.h | 5 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 93 +++--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 261 ++++++----------- drivers/infiniband/hw/hns/hns_roce_mr.c | 431 ++++++++++++++++++++++++++-- drivers/infiniband/hw/hns/hns_roce_qp.c | 182 +++--------- drivers/infiniband/hw/hns/hns_roce_srq.c | 368 +++++++++--------------- 10 files changed, 954 insertions(+), 949 deletions(-) -- 2.8.1