mbox series

[for-next,0/6] RDMA/hns: Support 0 hop addressing

Message ID 1586779091-51410-1-git-send-email-liweihang@huawei.com (mailing list archive)
Headers show
Series RDMA/hns: Support 0 hop addressing | expand

Message

Weihang Li April 13, 2020, 11:58 a.m. UTC
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(-)

Comments

Jason Gunthorpe April 22, 2020, 7:22 p.m. UTC | #1
On Mon, Apr 13, 2020 at 07:58:05PM +0800, Weihang Li wrote:
> 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

Applied to for-next, thanks

Jason