Skip to content

RDMA/hns: Several fixes and cleanups of RQ/SRQ

Weihang Li linux-rdma 1 version Applied

Status from this message: Applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12RDMA/hns: Allocate one more recv SGE for HIP08drivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_hw_v2.h +2 more+93 -190 replies
2/12RDMA/hns: Bugfix for checking whether the srq is full when post wrdrivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_srq.c+19 -90 replies
3/12RDMA/hns: Force srq_limit to 0 when creating SRQdrivers/infiniband/hw/hns/hns_roce_srq.c+1 -00 replies
4/12RDMA/hns: Fixed wrong judgments in the goto branchdrivers/infiniband/hw/hns/hns_roce_main.c+1 -20 replies
5/12RDMA/hns: Remove the reserved WQE of SRQdrivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_srq.c+8 -50 replies
6/12RDMA/hns: Refactor hns_roce_create_srq()drivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_srq.c+161 -1250 replies
7/12RDMA/hns: Refactor code about SRQ Contextdrivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_srq.c+42 -410 replies
8/12RDMA/hns: Use new interfaces to write SRQCdrivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_hw_v2.h+118 -1110 replies
9/12RDMA/hns: Refactor post recv flowdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+41 -400 replies
10/12RDMA/hns: Clear remaining unused sges when post_recvdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+47 -520 replies
11/12RDMA/hns: Refactor hns_roce_v2_post_srq_recv()drivers/infiniband/hw/hns/hns_roce_hw_v2.c+43 -260 replies
12/12RDMA/hns: Add verification of QP type when post_recvdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+13 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.8.1