mbox series

[for-next,00/12] RDMA/hns: Several fixes and cleanups of RQ/SRQ

Message ID 1611997090-48820-1-git-send-email-liweihang@huawei.com (mailing list archive)
Headers show
Series RDMA/hns: Several fixes and cleanups of RQ/SRQ | expand

Message

Weihang Li Jan. 30, 2021, 8:57 a.m. UTC
There are some issues when using SRQ on HIP08/HIP09, the first part of this
series is some fixes on them.

In addition, the codes about RQ/SRQ including the creation and post recv
flow are a bit hard to understand, they need to be refactored.

Lang Cheng (2):
  RDMA/hns: Allocate one more recv SGE for HIP08
  RDMA/hns: Use new interfaces to write SRQC

Wenpeng Liang (8):
  RDMA/hns: Bugfix for checking whether the srq is full when post wr
  RDMA/hns: Force srq_limit to 0 when creating SRQ
  RDMA/hns: Fixed wrong judgments in the goto branch
  RDMA/hns: Remove the reserved WQE of SRQ
  RDMA/hns: Refactor hns_roce_create_srq()
  RDMA/hns: Refactor code about SRQ Context
  RDMA/hns: Refactor hns_roce_v2_post_srq_recv()
  RDMA/hns: Add verification of QP type when post_recv

Xi Wang (2):
  RDMA/hns: Refactor post recv flow
  RDMA/hns: Clear remaining unused sges when post_recv

 drivers/infiniband/hw/hns/hns_roce_device.h |  16 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 407 +++++++++++++++-------------
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h  |  72 +++--
 drivers/infiniband/hw/hns/hns_roce_main.c   |   3 +-
 drivers/infiniband/hw/hns/hns_roce_qp.c     |  37 ++-
 drivers/infiniband/hw/hns/hns_roce_srq.c    | 329 ++++++++++++----------
 6 files changed, 510 insertions(+), 354 deletions(-)

Comments

Jason Gunthorpe Feb. 8, 2021, 11:43 p.m. UTC | #1
On Sat, Jan 30, 2021 at 04:57:58PM +0800, Weihang Li wrote:
> There are some issues when using SRQ on HIP08/HIP09, the first part of this
> series is some fixes on them.
> 
> In addition, the codes about RQ/SRQ including the creation and post recv
> flow are a bit hard to understand, they need to be refactored.
> 
> Lang Cheng (2):
>   RDMA/hns: Allocate one more recv SGE for HIP08
>   RDMA/hns: Use new interfaces to write SRQC
> 
> Wenpeng Liang (8):
>   RDMA/hns: Bugfix for checking whether the srq is full when post wr
>   RDMA/hns: Force srq_limit to 0 when creating SRQ
>   RDMA/hns: Fixed wrong judgments in the goto branch
>   RDMA/hns: Remove the reserved WQE of SRQ
>   RDMA/hns: Refactor hns_roce_create_srq()
>   RDMA/hns: Refactor code about SRQ Context
>   RDMA/hns: Refactor hns_roce_v2_post_srq_recv()
>   RDMA/hns: Add verification of QP type when post_recv
> 
> Xi Wang (2):
>   RDMA/hns: Refactor post recv flow
>   RDMA/hns: Clear remaining unused sges when post_recv

Applied to for-next, thanks

Jason