Skip to content

RDMA/hns: Refactor qp related code

Weihang Li linux-rdma 4 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 1 replyApplied
  2. v37 patches 1 replySuperseded
  3. v27 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches3 repliesSuperseded

Changes in v4 from the cover letter

- Fix wrong judgments of inlen and outlen in udata to maintain compatibility in patch 7/7. Other similar issues in hns driver will be fixed by another patch.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7RDMA/hns: Optimize qp destroy flowdrivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_hw_v1.c drivers/infiniband/hw/hns/hns_roce_hw_v2.c +1 more+46 -580 replies
2/7RDMA/hns: Optimize qp context create and destroy flowdrivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_qp.c+81 -890 replies
3/7RDMA/hns: Optimize qp number assign flowdrivers/infiniband/hw/hns/hns_roce_qp.c+44 -470 replies
4/7RDMA/hns: Optimize qp buffer allocation flowdrivers/infiniband/hw/hns/hns_roce_device.h drivers/infiniband/hw/hns/hns_roce_qp.c+144 -1230 replies
5/7RDMA/hns: Optimize qp param setup flowdrivers/infiniband/hw/hns/hns_roce_qp.c+72 -640 replies
6/7RDMA/hns: Optimize kernel qp wrid allocation flowdrivers/infiniband/hw/hns/hns_roce_qp.c+45 -270 replies
7/7RDMA/hns: Optimize qp doorbell allocation flowdrivers/infiniband/hw/hns/hns_roce_qp.c+132 -1020 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 for-next 0/7] RDMA/hns: Refactor qp related code

This series refactor qp related code, including creating, destroying qp and so on to make the processs easier to understand and maintain.

Previous disscussion can be found at:
https://patchwork.kernel.org/cover/11372841/
https://patchwork.kernel.org/cover/11341265/

Changes since v3:
- Fix wrong judgments of inlen and outlen in udata to maintain compatibility in patch 7/7. Other similar issues in hns driver will be fixed by another patch.

Changes since v2:
- Change some macros into static inline functions as Jason suggested.
- Unify all prints into format of "Failed to xxx".

Changes since v1:
- Reduce the number of prints as Leon suggested.
- Fix a wrong function name in description of patch 4/7.

Xi Wang (7):
RDMA/hns: Optimize qp destroy flow
RDMA/hns: Optimize qp context create and destroy flow RDMA/hns: Optimize qp number assign flow RDMA/hns: Optimize qp buffer allocation flow RDMA/hns: Optimize qp param setup flow RDMA/hns: Optimize kernel qp wrid allocation flow RDMA/hns: Optimize qp doorbell allocation flow

 drivers/infiniband/hw/hns/hns_roce_device.h |   6 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c  |  19 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c  |  43 +-
 drivers/infiniband/hw/hns/hns_roce_qp.c     | 808 ++++++++++++++++------------
 4 files changed, 465 insertions(+), 411 deletions(-)
Signature · 1 line
2.8.1